dcache library

Classes

Cache<K, V>
CacheEntry<K, V>
InMemoryStorage<K, V>
LfuCache<K, V>
LruCache<K, V>
SimpleCache<K, V>
SimpleCache is a basic cache implementation without any particular logic than appending keys in the storage, and remove first inserted keys when storage is full
Storage<K, V>

Typedefs

LoaderFunc<K, V> = FutureOr<V> Function(K key, V? oldValue)
OnEvict<K, V> = void Function(K k, V? v)