Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Structure for storing a memory cache. More...
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_heap * | object_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_container * | objects |
Objects in the cache. More... | |
const struct ast_sorcery * | sorcery |
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... | |
Structure for storing a memory cache.
Definition at line 127 of file res_sorcery_memory_cache.c.
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.
int expire_id |
Scheduler item for expiring oldest object.
Definition at line 145 of file res_sorcery_memory_cache.c.
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.
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.
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.
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().
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.
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().
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().
char* object_type |
The type of object we are caching.
Definition at line 151 of file res_sorcery_memory_cache.c.
struct ao2_container* objects |
Objects in the cache.
Definition at line 131 of file res_sorcery_memory_cache.c.
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.
int stale_update_sched_id |
scheduler id of stale update task
Definition at line 147 of file res_sorcery_memory_cache.c.