MCPcopy
hub / github.com/grafana/tempo / Remove

Method Remove

pkg/drain/log_cluster_cache.go:42–44  ·  view source on GitHub ↗

Remove invalidates a cluster from the cache.

(key int)

Source from the content-addressed store, hash-verified

40
41// Remove invalidates a cluster from the cache.
42func (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.
47func (c *logClusterCache) Get(key int) *LogCluster {

Callers 11

TestReadWriteFunction · 0.80
DeleteEntriesFunction · 0.80
deleteEdgeMethod · 0.80
TestCacheFunction · 0.80
atomicWriteFileFunction · 0.80
DeleteMethod · 0.80
RemoveFunction · 0.80
CloseMethod · 0.80

Calls

no outgoing calls

Tested by 5

TestReadWriteFunction · 0.64
TestCacheFunction · 0.64