DataCacheManager class
A manager for caching using DataCacheX
Constructors
- DataCacheManager.new({required String namespace, DataCacheX? dataCache, DataChunker? dataChunker, Logger? logger})
- Creates a new DataCacheManager
Properties
Methods
-
clear(
) → Future< void> - Clears all cache entries for this namespace
-
get<
T> (String key, {String? storageType}) → Future< T?> - Gets a cache entry
-
initialize(
) → Future< void> - Initializes the cache manager
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put<
T> (String key, T data, {DataCacheOptions options = const DataCacheOptions()}) → Future< void> - Puts a cache entry
-
remove(
String key) → Future< void> - Removes a cache entry
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited