ecache
library
Classes
Cache <K , V >
CacheEntry <K , V >
ExpirationCache <K , V >
A cache which evicts entries after a certain amount of time
ExpirationCacheEntry <K , V >
//////////////////////////////////////////////////////////////////////////
LfuCache <K , V >
LfuCacheEntry <K , V >
//////////////////////////////////////////////////////////////////////////
LruCache <K , V >
LruCacheEntry <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
SimpleStorage <K , V >
StatisticsStorage <K , V >
Same as SimpleStorage but collects a few statistical data
Storage <K , V >
Typedefs
LoaderFunc <K , V >
= V Function(K key )
returns the value for the given key key
or null. This method will be called if the value for the requested key
is not
available in the cache.
OnEvict <K , V >
= void Function(K k , V v )
This method will be called if a value is removed from the storage. It can be used to dispose items