package
1.28.0-130.0
Repository: https://github.com/temporalio/temporal.git
Documentation: pkg.go.dev

# Functions

New creates a new cache with the given options.
NewLRU creates a new LRU cache of the given size, setting initial capacity to the max size.
NewMockSizeGetter creates a new mock instance.
NewSimple creates a new simple cache with given options.
NewWithMetrics creates a new cache that will emit capacity and ttl metrics.

# Variables

DummyCreateTime is the create time used by all entries in the cache.
ErrCacheFull is returned if Put fails due to cache being filled with pinned elements.
ErrCacheItemTooLarge is returned if Put fails due to item size being larger than max cache capacity.

# Structs

MockSizeGetter is a mock of SizeGetter interface.
MockSizeGetterMockRecorder is the mock recorder for MockSizeGetter.
Options control the behavior of the cache.
SimpleOptions provides options that can be used to configure SimpleCache.

# Interfaces

A Cache is a generalized interface to a cache.
Entry
Entry represents a key-value entry within the map.
Iterator represents the interface for cache iterators.
SizeGetter is an interface that can be implemented by cache entries to provide their size.

# Type aliases

RemovedFunc is a type for notifying applications when an item is scheduled for removal from the Cache.