package
Version:
v1.1.3
Opens a new window with list of versions in this module.
Published: May 28, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Bind - to stats a cache
`pool` can be used to classify instances that store same items
`caches` is cache instances to be binded
Stats - get the result like follows
`k` is categoy, type is string
`v` is node, type is `*stats.StatsNode`
stats.Stats().Range(func(k, v interface{}) bool {
fmt.Println("stats:", k, v)
return true
})
type StatsNode struct {
Evicted, Updated, Added, GetMiss, GetHit, DelMiss, DelHit uint64
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.