Remove invalidates a cluster from the cache.
(key int)
| 40 | |
| 41 | // Remove invalidates a cluster from the cache. |
| 42 | func (c *logClusterCache) Remove(key int) { |
| 43 | c.cache.Invalidate(key) |
| 44 | } |
| 45 | |
| 46 | // Get retrieves a cluster from the cache and updates the access time to prevent ttl-based eviction. |
| 47 | func (c *logClusterCache) Get(key int) *LogCluster { |
no outgoing calls