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

Method Put

pkg/drain/log_cluster_cache.go:37–39  ·  view source on GitHub ↗

Set adds a cluster to the cache. This method may evict other clusters from the cache if it's full.

(cluster *LogCluster)

Source from the content-addressed store, hash-verified

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

Callers 7

trainMethod · 0.45

Calls 1

SetMethod · 0.65