HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_UnifiedCache Class Reference

#include <UT_ThreadSafeCache.h>

Static Public Member Functions

static UT_ThreadSafeCache
< UT_Lock > & 
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 ()
 

Detailed Description

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 383 of file UT_ThreadSafeCache.h.

Member Function Documentation

static UT_ThreadSafeCache<UT_Lock>& UT_UnifiedCache::get ( )
inlinestatic

Definition at line 386 of file UT_ThreadSafeCache.h.

static int64 UT_UnifiedCache::getMemoryUsage ( )
inlinestatic

Definition at line 399 of file UT_ThreadSafeCache.h.

static bool UT_UnifiedCache::isMaxMemorySet ( )
inlinestatic

Check whether the memory limit has been set.

Definition at line 396 of file UT_ThreadSafeCache.h.

static void UT_UnifiedCache::setMaxMemory ( int  size_mb)
inlinestatic

Set the amount of memory to be used by the cache, in MB.

Definition at line 389 of file UT_ThreadSafeCache.h.


The documentation for this class was generated from the following file: