Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
sorcery_memory_cache Struct Reference

Structure for storing a memory cache. More...

Data Fields

unsigned int del_expire:1
 
int expire_id
 Scheduler item for expiring oldest object.
 
unsigned int expire_on_reload
 Whether all objects are expired when the object type is reloaded, 0 if disabled.
 
unsigned int full_backend_cache
 Whether this is a cache of the entire backend, 0 if disabled.
 
unsigned int maximum_objects
 The maximum number of objects permitted in the cache, 0 if no limit.
 
char * name
 The name of the memory cache.
 
struct ast_heapobject_heap
 Heap of cached objects. Oldest object is at the top.
 
unsigned int object_lifetime_maximum
 The maximum time (in seconds) an object will stay in the cache, 0 if no limit.
 
unsigned int object_lifetime_stale
 The amount of time (in seconds) before an object is marked as stale, 0 if disabled.
 
char * object_type
 The type of object we are caching.
 
struct ao2_containerobjects
 Objects in the cache.
 
const struct ast_sorcerysorcery
 An unreffed pointer to the sorcery instance, accessible only with lock held.
 
int stale_update_sched_id
 scheduler id of stale update task
 

Detailed Description

Structure for storing a memory cache.

Definition at line 127 of file res_sorcery_memory_cache.c.

Field Documentation

unsigned int del_expire

TRUE if trying to stop the oldest object expiration scheduler item.

Definition at line 153 of file res_sorcery_memory_cache.c.


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