:sig
function kv_stats() dval

:returns
a map with `entries`, `bytes_used`, `bytes_capacity`, `hits`, `misses`, `sets`, `evictions`, `expirations`, and `resets`

:content
`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.

:example capy render
var stats := kv_stats()
print(s64(stats.bytes_capacity) > 0, "\n")

:output
true

:see-group
kv
