[OpenSIPS-Users] OpenSIPS 3.1 - Test if cache is empty?

Mark Allen mark at allenclan.co.uk
Wed Nov 25 14:18:36 EST 2020


Is there a simple way to test if a cache has any values stored?

I have a cache collection holding a number of IP addresses that are read on
startup from a local DB. If the DB table is updated I can flush the cache
of the old data with "opensips-cli -x mi cache_remove_chunk". I would then
want to have a test in OpenSIPS that says that if the cache is empty,
re-populate it from the DB. Is this possible?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201125/964a7716/attachment.html>


More information about the Users mailing list