C Collections

clrucache · Section 3

ccache_capacity

ccache_capacity - get the capacity of an LRU cache (type-inferred wrapper)

C Collections (libccollections, -lccollections)

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

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

cache  Cache handle to query

The capacity, which is always >= 1 for a valid handle. It is 0 when
cache is CCACHE_NULL, and 0 when cache is a stale handle that a
call already destroyed.

clrucache_capacity(3)