AsyncBaseCache<K, V> class abstract

Implementers

Constructors

AsyncBaseCache()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(K k, V v) bool
Add value in cache only it the element doesn't exist Returns true when element is added otherwise false
clear() → void
Clear all entries
dispose() → void
Dispose cache
exist(K k) bool
Returns true when the key is existing otherwise false
get(K k, {V? fallback}) Future<V?>
Get value in cache or get fallback or null
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(K k, Future<V> future()) → void
Register future for key
remove(K k) → V?
Remove value by key
set(K k, V v) bool
Set value in cache, if the value is present it will be overwritten Returns true when element is overwritten otherwise false
toString() String
A string representation of this object.
inherited
unregister(K k) bool
Register future by key Returns true when the key was existing
update(K k) Future<V?>
Force update for a value when a future is registered

Operators

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