Initial QSfera import

This commit is contained in:
Курнат Андрей
2026-06-07 10:20:04 +03:00
commit 2315f25754
16485 changed files with 4826827 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package ttlcache
// Metrics contains common cache metrics so you can calculate hit and miss rates
type Metrics struct {
// succesful inserts
Inserted int64
// retrieval attempts
Retrievals int64
// all get calls that were in the cache (excludes loader invocations)
Hits int64
// entries not in cache (includes loader invocations)
Misses int64
// items removed from the cache in any way
Evicted int64
}