dextool.cachetools

Members

Functions

cacheToolsRequire
V cacheToolsRequire(CT aa, K key, V value)

Looks up key; if it exists returns corresponding value else evaluates value, adds it to the associative array and returns it.

nullableCache
auto nullableCache(int size, Duration ttl)
Undocumented in source. Be warned that the author may not have intended to support it.
require
V require(V[K] aa, K key, V value)

Looks up key; if it exists returns corresponding value else evaluates value, adds it to the associative array and returns it.

Structs

NullableCache
struct NullableCache(K, V, alias getValue)
Undocumented in source.

Meta

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)

Based on require in object.d in druntime therefor the Boost license.

A convenient function extending cachetools with a common recurring function.