SimpleCache

Undocumented in source.

Members

Aliases

IDType
alias IDType = typeof(__traits(getMember, T.init, idMember))
Undocumented in source.
get
alias get = update
Undocumented in source.

Functions

has
bool has(IDType id)
Undocumented in source. Be warned that the author may not have intended to support it.
patch
T patch(T value, bool put)
Undocumented in source. Be warned that the author may not have intended to support it.
put
void put(T data)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
bool remove(IDType id)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAll
IDType[] removeAll(IDType[] ids)
update
T update(IDType id, void delegate(scope ref T) @(safe) updater, bool put)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

entries
T[] entries;
Undocumented in source.
index
size_t index;
Undocumented in source.

Meta