mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-21 09:10:36 +00:00
Add message dump capability to stasis cache layer
The cache dump mechanism allows the developer to retreive multiple items of a given type (or of all types) from the cache residing in a stasis caching topic in addition to the existing single-item cache retreival mechanism. This also adds to the caching unit tests to ensure that the new cache dump mechanism is functioning properly. Review: https://reviewboard.asterisk.org/r/2367/ (issue ASTERISK-21097) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@382705 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -480,6 +480,17 @@ struct stasis_message *stasis_cache_get(struct stasis_caching_topic *caching_top
|
||||
struct stasis_message_type *type,
|
||||
const char *id);
|
||||
|
||||
/*!
|
||||
* \brief Dump cached items to a subscription
|
||||
* \param caching_topic The topic returned from stasis_caching_topic_create().
|
||||
* \param type Type of message to dump (any type if NULL).
|
||||
* \return ao2_container containing all matches (must be unreffed by caller)
|
||||
* \return NULL on allocation error
|
||||
* \since 12
|
||||
*/
|
||||
struct ao2_container *stasis_cache_dump(struct stasis_caching_topic *caching_topic,
|
||||
struct stasis_message_type *type);
|
||||
|
||||
/*! @} */
|
||||
|
||||
/*! @{ */
|
||||
|
||||
Reference in New Issue
Block a user