kv_stats
lib callCapy
function kv_stats() any
Description
kv_stats() reports the shared cache's counters since the runtime started. resets counts the times the cache was cleared after a worker died while holding its lock.
Return Values
a map with entries, bytes_used, bytes_capacity, hits, misses, sets, evictions, expirations, and resets
Example
Capy
var stats := kv_stats() print(s64(stats.bytes_capacity) > 0, "\n")
Output
true