DistributedCacheExtensions extension

Extension methods for IDistributedCache.

on

Methods

getString(String key) Future<String?>

Available on IDistributedCache, provided by the DistributedCacheExtensions extension

Gets a string value from the cache with the given key.
setBytes(String key, Uint8List value) Future<void>

Available on IDistributedCache, provided by the DistributedCacheExtensions extension

Sets the value for key without options.
setString(String key, String value, [DistributedCacheEntryOptions? options]) Future<void>

Available on IDistributedCache, provided by the DistributedCacheExtensions extension

Sets a string value in the cache with the given key.