LRUT

Undocumented in source.

Constructors

this
this(EvictCallback onEvict, uint size, double maxage)
Undocumented in source.

Members

Aliases

Element
alias Element = LRU_t.Element
Undocumented in source.
Entry
alias Entry = LRU_t.Entry
Undocumented in source.
EvictCallback
alias EvictCallback = LRU_t.EvictCallback
Undocumented in source.
EvictList
alias EvictList = LRU_t.EvictList
Undocumented in source.
LRU_t
alias LRU_t = LRU!(K, V)
Undocumented in source.

Functions

add
bool add(K key, V value, bool update)
Undocumented in source. Be warned that the author may not have intended to support it.
contains
bool contains(K key)
Undocumented in source. Be warned that the author may not have intended to support it.
expired
bool expired(K key)
Undocumented in source. Be warned that the author may not have intended to support it.
get
bool get(K key, V value)
Undocumented in source. Be warned that the author may not have intended to support it.
getOldest
const(Entry)* getOldest()
Undocumented in source. Be warned that the author may not have intended to support it.
keys
auto keys()

keys returns a slice of the keys in the cache, from oldest to newest.

length
uint length()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
V opIndex(K key)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
void opIndexAssign(V value, const(K) key)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
EvictList.Range!false opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
peek
bool peek(K key, V value)
Undocumented in source. Be warned that the author may not have intended to support it.
peek
V peek(K key)
Undocumented in source. Be warned that the author may not have intended to support it.
purge
void purge()
Undocumented in source. Be warned that the author may not have intended to support it.
remove
bool remove(const(K) key)
Undocumented in source. Be warned that the author may not have intended to support it.
removeOldest
const(Result!(Entry*)) removeOldest()
Undocumented in source. Be warned that the author may not have intended to support it.
setEvict
void setEvict(EvictCallback evict)
Undocumented in source. Be warned that the author may not have intended to support it.
upTime
double upTime(K key)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

does_not_have_immutable_members
enum does_not_have_immutable_members;
Undocumented in source.

Variables

_lru
LRU!(K, V) _lru;
Undocumented in source.

Meta