ExpireCache<K, V> class
A cache. Its entries will expire after a given time period.
Constructors
- ExpireCache({Clock clock: const Clock(), Duration expireDuration: const Duration(seconds: 60), Duration gcDuration: const Duration(seconds: 60) })
Properties
- clock → Clock
-
final
- expireDuration → Duration
-
final
- gcDuration → Duration
-
final
- 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
-
get(
K key) → Future< V> -
invalidate(
K key) → Future< Null> -
set(
K key, V value) → Future< Null> -
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