IsolateCacheDelegate<D extends Object, P extends Object> class
AsyncCacheDelegate that runs operations in Isolate
D
- data type to store
P
- params type
- Implemented types
-
- AsyncCacheDelegate<
D, P>
- AsyncCacheDelegate<
- Available extensions
Constructors
-
IsolateCacheDelegate(AsyncCacheDelegate<
D, P> _delegate) -
Constructor
_delegate
Async delegate to be wrapped with Isolate
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(
P params) → Future< void> -
Deletes cached value
params
Caching keyoverride -
dispose(
) → void - Disposes internal state
-
get(
P params) → Future< Entity< D> ?> -
Returns data if cached
params
Caching keyoverride -
invalidate(
P params) → Future< void> -
Invalidates cached value
params
Caching keyoverride -
invalidateAll(
) → Future< void> -
Invalidates all cached values
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
P params, Entity< D> entity) → Future<void> -
Saves data to cache
params
Caching keyentity
Entity to cacheoverride -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited