CacheHandler 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
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
clear()
→ Future<bool>
-
Clear current Cache
-
getCacheList(String key, {bool deleteOnError = true})
→ Future<List<CacheObject>>
-
Get
List<CacheObject>
-
getCacheObject(String key, {bool deleteOnError = true})
→ Future<CacheObject?>
-
Get Cache Object from List
-
getCacheObjectFromList(String key, String objectKey, String objectKeyValue, {bool deleteOnError = true})
→ Future<CacheObject?>
-
Get
CacheObject
from List
-
getSharedPreferences()
→ SharedPreferences
-
-
isSetup()
→ bool
-
-
removeCacheObject(String key)
→ Future<bool>
-
Remove Cache Object From Cache
-
removeCacheObjectFromList(String key, String objectId, String keyField, {bool deleteOnError = true})
→ Future<bool>
-
Remove CacheObject from List
-
saveCacheObject(String key, CacheObject cacheObject, {bool overwrite = true, bool deleteOnError = true})
→ Future<bool>
-
Save CacheObject to Cache
-
saveCacheObjectToList(String key, CacheObject cacheObject, String keyField, {bool overwrite = true, bool deleteOnError = true, int? limit})
→ Future<bool>
-
-
setup()
→ Future<void>
-