CacheStorage class

Core storage operations - so basically a wrapper around the Map object

Constructors

CacheStorage()

Properties

cacheInstance → Map<String, dynamic>
Get raw cache instance (for internal use)
no setter
hashCode → int
The hash code for this object.
no setterinherited
keys → List<String>
Get all cache keys
no setter
keyTags → Map<String, Set<String>>
Get raw key tags (for internal use)
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addToCache<T>(String key, T value, {List<String>? tags}) → void
Add value to cache with optional tags
clearAll() → void
Clear all cache data
getEntry<T>(String key) → CacheEntry<T>?
getKeysByPattern(String pattern) → List<String>
Get all keys matching a pattern
getKeysByTag(String tag) → List<String>
Get all keys that have a specific tag
getKeysByTags(List<String> tags) → List<String>
Get all keys that have any of the provided tags
getTagsForKey(String key) → Set<String>?
Get tags for a specific key
getValue<T>(String key) → T?
Get value from cache
hasKey(String key) → bool
Check if key exists in cache
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeKey(String key) → void
Remove key from cache
toString() → String
A string representation of this object.
inherited
updateTagsForKey(String key, List<String> tags) → void
Update tags for a key

Operators

operator ==(Object other) → bool
The equality operator.
inherited