Cache<T> class

Implementers

Constructors

Cache()

Properties

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

clear() → FutureOr<void>
Wipes all data in the cache
read(String key) → FutureOr<T>
Get the content associated with the given key
readMany(List<String> keys) → FutureOr<List<T>>
Get the content associated multiple keys at once
remove(String key) → FutureOr<void>
Deletes the given key from the cache
replace(String key, T v, [ Duration expires ]) → FutureOr<void>
Set the given key/value in the cache ONLY IF the key already exists.
upsert(String key, T value, [ Duration expires ]) → FutureOr<void>
Set the given key/value in the cache, overwriting any existing value associated with that key
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited