ec_cache_purge — Explicitly remove elements from the cache
int **ec_cache_purge** ( | cache, | |
| | now, | |
| | purge_all
); | |
Allows you to explicitly remove elements from the cache. If the the cache was configured with a time-to-live for the elements, then the
now will be interpreted as the effective current time and elements older than
ttl will be purged from the cache. If the
purge_all is non-zero, then all elements will be purged from the cache.
The address of the cache. The following typedef applies to the
typedef struct ec_cache_head ec_cache_t;
Will be interpreted as the effective current time.
If this parameter is non-zero, then all elements will be purged from the cache.
This function returns the number of purged entries.
While it is legal to call this function in any thread, it should only be called in the Scheduler thread.