LruCache<K, V> class
- Inheritance
-
- Object
- Cache<
K, V> - SimpleCache<
K, V> - LruCache
Properties
- expiration ← Duration
-
no getterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
return the number of element in the cache
no setterinherited
-
loader
← LoaderFunc<
K, V> -
no getterinherited
-
onEvict
↔ OnEvict<
K, V> ? -
if onEvict is set that method is called whenever an entry is removed from the queue.
At the time the method is called the entry is already removed.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
storage
← Storage<
K, V> -
no getterinherited
- syncLoading ← bool
-
no getterinherited
Methods
-
clear(
) → SimpleCache< K, V> -
remove all the entry inside the cache
inherited
-
containsKey(
K key) → bool -
inherited
-
get(
K key) → V? -
return the element identify by
key
inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
K key, V element) → Cache< K, V> -
add
element
in the cache atkey
inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
K key) → V? -
return the value at
key
inherited -
operator []=(
K key, V element) → void -
assign
element
forkey
inherited