Cache<T> class
Properties
Methods
-
get(
String key) → T? - Gets a cached item with the given key
-
getAll(
) → List< T> - Gets all cached items
-
getWhere(
bool function(CacheItem< T> )) → List<T> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
String key, T item) → void - Inserts an item with the given key into the cache
-
putMany(
List< T> items, String getKey(T item)) → void - Inserts many items into the cache
-
putManyWithDuration(
List< T> items, String getKey(T item), Duration duration) → void - Inserts many items into the cache with the given duration
-
putWithDuration(
String key, T item, Duration duration) → void - Inserts an item with the given key and duration into the cache
-
remove(
String key) → void - Removes the item with the given key from the cache
-
removeAll(
) → void - Removes all items from the cache
-
removeItem(
CacheItem item) → void - Removes the given item from the cache
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited