C Collections

clrucache · Section 3

ccache_size

ccache_size - get the number of live entries in an LRU cache (type-inferred wrapper)

C Collections (libccollections, -lccollections)

#include <ccollections/clrucache.h>
 
ccache_size(cache);

Type-inferred wrapper for clrucache_size(). It takes the same arguments
and gives the same result; clrucache_size(3) has the full contract.

cache  Cache handle to query

The number of live entries. It is 0 when cache is CCACHE_NULL,
and 0 when cache is a stale handle that a call already destroyed.

clrucache_size(3)