Set adds a cluster to the cache. This method may evict other clusters from the cache if it's full.
(cluster *LogCluster)
| 35 | |
| 36 | // Set adds a cluster to the cache. This method may evict other clusters from the cache if it's full. |
| 37 | func (c *logClusterCache) Put(cluster *LogCluster) { |
| 38 | c.cache.Set(cluster.id, cluster) |
| 39 | } |
| 40 | |
| 41 | // Remove invalidates a cluster from the cache. |
| 42 | func (c *logClusterCache) Remove(key int) { |