mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
9d6577049f
* feat(wallet): implement balance history based on fetched transfers * Added vendor 'ttlcache'
23 lines
618 B
Go
23 lines
618 B
Go
package ttlcache
|
|
|
|
// Metrics contains common cache metrics calculated over the course
|
|
// of the cache's lifetime.
|
|
type Metrics struct {
|
|
// Insertions specifies how many items were inserted.
|
|
Insertions uint64
|
|
|
|
// Hits specifies how many items were successfully retrieved
|
|
// from the cache.
|
|
// Retrievals made with a loader function are not tracked.
|
|
Hits uint64
|
|
|
|
// Misses specifies how many items were not found in the cache.
|
|
// Retrievals made with a loader function are considered misses as
|
|
// well.
|
|
Misses uint64
|
|
|
|
// Evictions specifies how many items were removed from the
|
|
// cache.
|
|
Evictions uint64
|
|
}
|