(entry *cacheEntry)
| 174 | } |
| 175 | |
| 176 | func (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. |
| 188 | type cacheEntry struct { |
no test coverage detected