DVMemoryCacheAdapter class
Process-local cache. The default, and what DV.Cache used exclusively
before adapters existed.
- Implemented types
- Available extensions
Constructors
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
-
clear(
) → Future< void> -
override
-
delete(
String key) → Future< void> -
Removes
key. Named asDV.Cache.deleteis, so the adapter and the call an application makes say the same thing.override -
increment(
String key, {int by = 1, Duration? ttl}) → Future< int> -
Adds
byto the number atkeyand returns the new total, creating it atbywhen it is absent.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
purgeExpired(
) → Future< int> -
Removes expired entries. Reads already ignore them; this reclaims space.
override
-
read(
String key) → Future< Object?> -
override
-
remove(
String key) → Future< void> -
Available on DVCacheAdapter, provided by the DVCacheAdapterRemove extension
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, Object? value, Duration? ttl) → Future< void> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited