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

#include <UT_ThreadSafeCache.h>

Public Types

using cache_type = UT_ThreadSafeCache< UT_Lock >
 

Static Public Member Functions

static cache_typeget ()
 
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 392 of file UT_ThreadSafeCache.h.

Member Typedef Documentation

Member Function Documentation

static cache_type& UT_UnifiedCache::get ( )
inlinestatic

Definition at line 397 of file UT_ThreadSafeCache.h.

static int64 UT_UnifiedCache::getMemoryUsage ( )
inlinestatic

Definition at line 410 of file UT_ThreadSafeCache.h.

static bool UT_UnifiedCache::isMaxMemorySet ( )
inlinestatic

Check whether the memory limit has been set.

Definition at line 407 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 400 of file UT_ThreadSafeCache.h.


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