addCache

Adds an entry to the thread-local cache.

void
addCache
(
T
)
(
string key
,,
size_t cacheTime = 0
)

Parameters

key string

The key of the entry.

value T

The value to cache.

cacheTime size_t

The amount of time the value should be cached. (0 = forever)

Meta