LruStorage<K extends Comparable, V extends Object?> class
- Inheritance
-
- Object
- Storage<
LruCacheEntry< K, V> , K, V> - InMemoryStorage<
LruCacheEntry< K, V> , K, V> - LruStorage
Constructors
-
LruStorage(int size, {Map<
K, LruCacheEntry< ? internalMap})K, V> >
Properties
- capacity → int
-
Capacity/size of the Storage.
no setterinherited
-
entries
→ List<
LruCacheEntry< K, V> > -
Get List of all the CacheEntrys present in Storage.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keys
→ List<
K> -
Get List of all the keys present in Storage.
no setterinherited
- length → int
-
Count of the CacheEntrys present in Storage.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void -
Clears the Storage, removing all the present CacheEntrys.
inherited
-
containsKey(
K key) → bool -
If Storage contains
key
.inherited -
get(
K key) → LruCacheEntry< K, V> ? -
Get a CacheEntry using
key
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
K key) → void -
Removes the CacheEntry with
key
.inherited -
set(
K key, LruCacheEntry< K, V> entry) → InMemoryStorage<CacheEntry< Comparable, Object?> , Comparable, Object?> -
Insert a CacheEntry with
key
into the Storage.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
K key) → LruCacheEntry< K, V> ? -
Get a CacheEntry using
key
.inherited -
operator []=(
K key, LruCacheEntry< K, V> entry) → void -
Insert a CacheEntry with
key
into the Storage.inherited