|
HDK
|
#include <UT_ThreadSafeCache.h>
Public Types | |
| using | cache_type = UT_ThreadSafeCache< UT_Lock > |
Static Public Member Functions | |
| static cache_type & | get () |
| static void | setMaxMemory (int size_mb) |
| Set the amount of memory to be used by the cache, in MB. More... | |
| static bool | isMaxMemorySet () |
| Check whether the memory limit has been set. More... | |
| static int64 | getMemoryUsage () |
This can be used as a unified cache for a process. The cache will not destroy any items left in the cache when the process exits.
Definition at line 396 of file UT_ThreadSafeCache.h.
Definition at line 399 of file UT_ThreadSafeCache.h.
|
inlinestatic |
Definition at line 401 of file UT_ThreadSafeCache.h.
|
inlinestatic |
Definition at line 414 of file UT_ThreadSafeCache.h.
|
inlinestatic |
Check whether the memory limit has been set.
Definition at line 411 of file UT_ThreadSafeCache.h.
Set the amount of memory to be used by the cache, in MB.
Definition at line 404 of file UT_ThreadSafeCache.h.