| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
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_heap * | object_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_container * | objects | 
| Objects in the cache. | |
| const struct ast_sorcery * | sorcery | 
| An unreffed pointer to the sorcery instance, accessible only with lock held. | |
| int | stale_update_sched_id | 
| scheduler id of stale update task | |
Structure for storing a memory cache.
Definition at line 142 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 168 of file res_sorcery_memory_cache.c.
| int expire_id | 
Scheduler item for expiring oldest object.
Definition at line 160 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 154 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 156 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 148 of file res_sorcery_memory_cache.c.
| char* name | 
The name of the memory cache.
Definition at line 144 of file res_sorcery_memory_cache.c.
Referenced by PathSegment::get_child(), 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 158 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 150 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 152 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 166 of file res_sorcery_memory_cache.c.
| struct ao2_container* objects | 
Objects in the cache.
Definition at line 146 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 164 of file res_sorcery_memory_cache.c.
| int stale_update_sched_id | 
scheduler id of stale update task
Definition at line 162 of file res_sorcery_memory_cache.c.