Asterisk - The Open Source Telephony Project GIT-master-7e7a603
Data Fields
sorcery_memory_cache Struct Reference

Structure for storing a memory cache. More...

Collaboration diagram for sorcery_memory_cache:
Collaboration graph
[legend]

Data Fields

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

Detailed Description

Structure for storing a memory cache.

Definition at line 127 of file res_sorcery_memory_cache.c.

Field Documentation

◆ del_expire

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.

◆ expire_id

int expire_id

Scheduler item for expiring oldest object.

Definition at line 145 of file res_sorcery_memory_cache.c.

◆ expire_on_reload

unsigned int expire_on_reload

Whether all objects are expired when the object type is reloaded, 0 if disabled.

Definition at line 139 of file res_sorcery_memory_cache.c.

◆ full_backend_cache

unsigned int full_backend_cache

Whether this is a cache of the entire backend, 0 if disabled.

Definition at line 141 of file res_sorcery_memory_cache.c.

◆ maximum_objects

unsigned int maximum_objects

The maximum number of objects permitted in the cache, 0 if no limit.

Definition at line 133 of file res_sorcery_memory_cache.c.

◆ name

char* name

The name of the memory cache.

Definition at line 129 of file res_sorcery_memory_cache.c.

Referenced by PathSegment::get_child(), Parameter::load(), Property::load(), SwaggerType::load(), and sorcery_memory_cache_cmp().

◆ object_heap

struct ast_heap* object_heap

Heap of cached objects. Oldest object is at the top.

Definition at line 143 of file res_sorcery_memory_cache.c.

◆ object_lifetime_maximum

unsigned int object_lifetime_maximum

The maximum time (in seconds) an object will stay in the cache, 0 if no limit.

Definition at line 135 of file res_sorcery_memory_cache.c.

Referenced by sorcery_memory_cache_print_object().

◆ object_lifetime_stale

unsigned int object_lifetime_stale

The amount of time (in seconds) before an object is marked as stale, 0 if disabled.

Definition at line 137 of file res_sorcery_memory_cache.c.

Referenced by sorcery_memory_cache_print_object().

◆ object_type

char* object_type

The type of object we are caching.

Definition at line 151 of file res_sorcery_memory_cache.c.

◆ objects

struct ao2_container* objects

Objects in the cache.

Definition at line 131 of file res_sorcery_memory_cache.c.

◆ sorcery

const struct ast_sorcery* sorcery

An unreffed pointer to the sorcery instance, accessible only with lock held.

Definition at line 149 of file res_sorcery_memory_cache.c.

◆ stale_update_sched_id

int stale_update_sched_id

scheduler id of stale update task

Definition at line 147 of file res_sorcery_memory_cache.c.


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