DVCacheView class
The four calls, on one store: DV.Cache, or the store
DVCache.withAdapter switched to.
- Implementers
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
-
delete(
Object target) → Future< void> -
Removes what
targetnames: aStringkey drops that entry, a DVCacheTag drops every entry tagged with it, and DVCache.all drops every entry and every tag. -
get<
T> (String key, {FutureOr< T> compute()?, Duration? ttl, List<String> ? tags, Duration? staleFor}) → Future<T?> -
The value under
key, or null when there is none, it expired, or it is not aT. -
has(
String key) → Future< bool> -
Whether
keyholds a value that has not expired. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
String key, Object? value, {Duration? ttl, List< String> tags = const <String>[]}) → Future<void> -
Stores
valueunderkey. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited