IDataCacheController mixin
Combines query and command cache management operations
This mixin unites the read and write cache operations defined in
IQueryDataCacheController
and ICommandDataCacheController
.
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> -
Clears all entries from the cache.
inherited
-
delete(
{required String key}) → Future< void> -
Deletes the cache entry for the specified
key
.inherited -
getInt(
{required String key}) → Future< CacheResponse< int?> > -
Retrieves an integer value from the cache for the given
key
.inherited -
getJson(
{required String key}) → Future< CacheResponse< Map< >String, dynamic> ?> -
Retrieves a JSON map from the cache associated with the specified
key
.inherited -
getJsonList(
{required String key}) → Future< CacheResponse< List< >Map< ?>String, dynamic> > -
Retrieves a list of JSON maps from the cache associated with the specified
key
.inherited -
getString(
{required String key}) → Future< CacheResponse< String?> > -
Retrieves a string value from the cache for the given
key
.inherited -
getStringList(
{required String key}) → Future< CacheResponse< List< >String> ?> -
Retrieves a list of strings from the cache associated with the specified
key
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveInt(
{required String key, required int data}) → Future< void> -
Saves an integer value in the cache with the specified
key
.inherited -
saveJson(
{required String key, required Map< String, dynamic> data}) → Future<void> -
Saves a JSON map in the cache with the specified
key
.inherited -
saveJsonList(
{required String key, required List< Map< data}) → Future<String, dynamic> >void> -
Saves a list of JSON objects in the cache with the specified
key
.inherited -
saveString(
{required String key, required String data}) → Future< void> -
Saves a string value in the cache with the specified
key
.inherited -
saveStringList(
{required String key, required List< String> data}) → Future<void> -
Saves a list of strings in the cache with the specified
key
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited