LucidStorageManager class
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
-
cleanup({bool removeExpired = true, bool compactStorage = true, Duration? olderThan})
→ Future<LucidCacheCleanupResult>
-
-
clear({LucidCacheStorageType? storageType})
→ Future<void>
-
-
clearAuthTokens()
→ Future<void>
-
-
containsKey(String key, {LucidCacheStorageType? storageType})
→ Future<bool>
-
-
delete(String key, {LucidCacheStorageType? storageType})
→ Future<bool>
-
-
deleteByTag(String tag)
→ Future<int>
-
-
dispose()
→ Future<void>
-
-
exportCache(String filePath, {LucidCacheStorageType? storageType})
→ Future<void>
-
-
get<T>(String key, {LucidCacheStorageType? storageType, T? defaultValue})
→ Future<T?>
-
-
getAll<T>(LucidDataList<String> keys, {LucidCacheStorageType? storageType})
→ Future<Map<String, T?>>
-
-
getAuthToken()
→ Future<String?>
-
-
getByTag(String tag)
→ Future<LucidJsonMap>
-
-
getBytes(String key, {LucidCacheStorageType? storageType})
→ Future<Uint8List?>
-
-
getJson(String key, {LucidCacheStorageType? storageType})
→ Future<LucidJsonMap?>
-
-
getList<T>(String key, {LucidCacheStorageType? storageType})
→ Future<List<T>?>
-
-
getOrPut<T>(String key, LucidAsyncValueCallBack<T> factory, {LucidCacheStorageType? storageType, Duration? ttl, LucidDataList<String> tags = const [], bool isSecure = false})
→ Future<T>
-
-
getRefreshToken()
→ Future<String?>
-
-
getStats()
→ Future<LucidCacheManagerStats>
-
-
getUserPreference<T>(String key, {T? defaultValue})
→ Future<T?>
-
-
importCache(String filePath, {bool clearExisting = false})
→ Future<void>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
put<T>(String key, T value, {LucidCacheStorageType? storageType, Duration? ttl, LucidDataList<String> tags = const [], LucidCachePriority priority = LucidCachePriority.normal, bool isSecure = false})
→ Future<void>
-
-
putAll<T>(LucidEntriesMap<T> entries, {LucidCacheStorageType? storageType, Duration? ttl, LucidDataList<String> tags = const []})
→ Future<void>
-
-
putBytes(String key, Uint8List bytes, {LucidCacheStorageType storageType = LucidCacheStorageType.memory, Duration? ttl})
→ Future<void>
-
-
putJson(String key, LucidJsonMap json, {LucidCacheStorageType storageType = LucidCacheStorageType.memory, Duration? ttl})
→ Future<void>
-
-
putList<T>(String key, List<T> list, {LucidCacheStorageType storageType = LucidCacheStorageType.memory, Duration? ttl})
→ Future<void>
-
-
saveAuthToken(String token)
→ Future<void>
-
-
saveRefreshToken(String refreshToken)
→ Future<void>
-
-
saveUserPreference<T>(String key, T value)
→ Future<void>
-
-
toString()
→ String
-
A string representation of this object.
inherited