MCPcopy
hub / github.com/lindb/lindb / evict

Method evict

kv/table/cache.go:176–185  ·  view source on GitHub ↗
(entry *cacheEntry)

Source from the content-addressed store, hash-verified

174}
175
176func (c *storeCache) evict(entry *cacheEntry) {
177 c.closeReader(entry)
178
179 files := c.families[entry.family]
180 delete(files, entry.fileName)
181 if len(files) == 0 {
182 delete(c.families, entry.family)
183 }
184 metrics.TableCacheStatistics.Evict.Incr()
185}
186
187// cacheEntry represents entry in lru cache.
188type cacheEntry struct {

Callers 2

EvictMethod · 0.95
CleanupMethod · 0.95

Calls 2

closeReaderMethod · 0.95
IncrMethod · 0.45

Tested by

no test coverage detected