Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[V any] interface { // Get returns the value for the given id, and a boolean to indicate whether the key was found. // If the key is not present, the zero value is returned. Get(id pcommon.TraceID) (V, bool) // Put sets the value for a given id Put(id pcommon.TraceID, v V) // Delete deletes the value for the given id Delete(id pcommon.TraceID) }
Cache is a cache using a pcommon.TraceID as the key and any generic type as the value.
func NewLRUDecisionCache ¶
NewLRUDecisionCache returns a new lruDecisionCache. The size parameter indicates the amount of keys the cache will hold before it starts evicting the least recently used key.
func NewNopDecisionCache ¶
Click to show internal directories.
Click to hide internal directories.