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

hashCode int
The hash code for this object.
no setterinherited
logger Logger?
Logger for logging operations
final
namespace String
The namespace for cache keys
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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