diamond.core.cache

Copyright © DiamondMVC 2019

Members

Functions

addCache
void addCache(string key, T value, size_t cacheTime)

Adds an entry to the thread-local cache.

addGlobalCache
void addGlobalCache(string key, T value, size_t cacheTime)

Adds an entry to the global cache.

clearCache
void clearCache()

Clears the cache.

clearGlobalCache
void clearGlobalCache()

Clears the global cache.

getCache
T getCache(string key)

Gets a value from the cache.

getGlobalCache
T getGlobalCache(string key)

Gets a value from the global cache.

removeCache
void removeCache(string key)

Removes a cached value.

removeGlobalCache
void removeGlobalCache(string key)

Removes a globally cached value.

Meta

Authors

Jacob Jensen (bausshf)