OverwriteCount indicates the number of times entries have been overridden.
()
| 403 | |
| 404 | // OverwriteCount indicates the number of times entries have been overridden. |
| 405 | func (cache *Cache) OverwriteCount() (overwriteCount int64) { |
| 406 | for i := range cache.segments { |
| 407 | overwriteCount += atomic.LoadInt64(&cache.segments[i].overwrites) |
| 408 | } |
| 409 | return |
| 410 | } |
| 411 | |
| 412 | // TouchedCount indicates the number of times entries have had their expiration time extended. |
| 413 | func (cache *Cache) TouchedCount() (touchedCount int64) { |
no outgoing calls