res_sorcery_memory_cache: Add CLI commands and AMI actions.
authorJoshua Colp <jcolp@digium.com>
Tue, 26 May 2015 12:34:47 +0000 (09:34 -0300)
committerJoshua Colp <jcolp@digium.com>
Fri, 29 May 2015 17:00:55 +0000 (14:00 -0300)
commitdfc45254d1b2f5c31a8f16def6a00f0d38755bfe
tree82aa502f6c09367231f8679f24e3d75c17d251ca
parent2e54e7227c8e440b8a0135000b1eff06e655cb95
res_sorcery_memory_cache: Add CLI commands and AMI actions.

This change adds the following CLI commands and AMI actions:

sorcery memory cache show
sorcery memory cache dump
sorcery memory cache expire
sorcery memory cache stale

SorceryMemoryCacheExpire
SorceryMemoryCacheExpireObject
SorceryMemoryCacheStale
SorceryMemoryCacheStaleObject

These allow both examination and manipulation of sorcery memory
caches from external sources.

Cached objects can be explicitly expired from a cache or marked
as stale. If expired they are immediately removed. If marked as
stale they will be background refreshed when next retrieved.

ASTERISK-25067
Reported by Matt Jordan

Change-Id: I68e03cfd8c34b5e07f4b6ee4fd93a3f4a00a3d9e
res/res_sorcery_memory_cache.c