Entry<T> class abstract

Pointer to a location in the cache.

This simply wraps a cache key, such that you don't need to supply a cache key for get, set and purge operations.

Constructors

Entry()

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

get([Future<T?> create(), Duration ttl]) Future<T?>
Get value stored in this cache entry.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
purge({int retries = 0}) Future
Clear the value stored in this cache entry.
set(T? value, [Duration ttl]) Future<T?>
Set the value stored in this cache entry.
toString() String
A string representation of this object.
inherited

Operators

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