]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_sorcery_memory_cache: Add CLI commands and AMI actions. 30/830/1
authorJoshua Colp <jcolp@digium.com>
Tue, 26 May 2015 12:34:47 +0000 (09:34 -0300)
committerMark Michelson <mmichelson@digium.com>
Wed, 8 Jul 2015 19:34:53 +0000 (14:34 -0500)
commitf596b4a85c8ed3b0677000b5f061098287f95e90
tree63bc7af04bd1b710e562d0dddd6aa9b4ebf02447
parent9c2de310be6ad11f954133a259e0a57fadc0c352
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