FFCache class

Constructors

FFCache({String name, Duration defaultTimeout, bool debug})
Returns a FFCache object. [...]
factory

Properties

defaultTimeout Duration
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

ageForKey(String key) Future<Duration>
returns cache entry age (Duration since creation) [...]
clear() Future<void>
remove all cache entries.
getBytes(String key) Future<List<int>>
get bytes(List) for key. [...]
getJSON(String key) Future
get JSON value for key. [...]
getString(String key) Future<String>
get string value for key. [...]
has(String key) Future<bool>
check if cache entry for key exist.
init() Future<void>
Initialize ffcache. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
remainingDurationForKey(String key) Duration
returns cache entry remaining duration for key. [...]
remove(String key) Future<bool>
remove cache entry for key [...]
setBytes(String key, List<int> bytes) Future<void>
store (key, bytes) pair. cache expires after defaultTimeout.
setBytesWithTimeout(String key, List<int> bytes, Duration timeout) Future<void>
store (key, bytes) pair. cache expires after timeout.
setJSON(String key, dynamic data) Future<void>
store (key, jsonData) pair. cache expires after defaultTimeout. [...]
setJSONWithTimeout(String key, dynamic data, Duration timeout) Future<void>
store (key, jsonData) pair. cache expires after timeout. [...]
setString(String key, String value) Future<void>
store (key, stringValue) pair. cache expires after defaultTimeout.
setStringWithTimeout(String key, String value, Duration timeout) Future<void>
store (key, stringValue) pair. cache expires after timeout.
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited