void ext_dns_cache_stats ( extDnsCtx ctx,
extDnsCacheStats stats 
)

Allows to get cache stats on the provided context.

Parameters
ctxThe context where the operation will take place.
statsCaller allocated object where the stats will be stored.

Note the function returns without updating anything in the case a reference to a NULL ctx or stats is received.

References _extDnsCacheStats::cache_access, _extDnsCacheStats::cache_hits, _extDnsCacheStats::cache_items, _extDnsCacheStats::cache_size, ext_dns_mutex_lock(), and ext_dns_mutex_unlock().