# Functions
CreateDomainCacheEntry create a cache entry with domainName.
No description provided by the author
New creates a new cache with the given options.
NewDomainCache creates a new instance of cache for holding onto domain information to reduce the load on persistence.
NewDomainCacheEntryForTest returns an entry with test data.
NewDomainMetricsScopeCache constructs a new domainMetricsScopeCache.
NewGlobalDomainCacheEntryForTest returns an entry with test data.
NewLocalDomainCacheEntryForTest returns an entry with test data.
NewMockCache creates a new mock instance.
NewMockDomainCache creates a new mock instance.
NewMockDomainMetricsScopeCache creates a new mock instance.
NewMockEntry creates a new mock instance.
NewMockIterator creates a new mock instance.
NewMockSizeable creates a new mock instance.
No description provided by the author
NewSimple creates a new simple cache with given options.
No description provided by the author
# Constants
DomainCacheRefreshInterval domain cache refresh interval.
ReplicationPolicyMultiCluster indicate that workflows need to be replicated.
ReplicationPolicyOneCluster indicate that workflows does not need to be replicated applicable to local domain & global domain with one cluster.
# 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.
SampleRateKey is key to specify sample rate.
SampleRetentionKey is key to specify sample retention.
# Structs
No description provided by the author
No description provided by the author
MockCache is a mock of Cache interface.
MockCacheMockRecorder is the mock recorder for MockCache.
MockDomainCache is a mock of DomainCache interface.
MockDomainCacheMockRecorder is the mock recorder for MockDomainCache.
MockDomainMetricsScopeCache is a mock of DomainMetricsScopeCache interface.
MockDomainMetricsScopeCacheMockRecorder is the mock recorder for MockDomainMetricsScopeCache.
MockEntry is a mock of Entry interface.
MockEntryMockRecorder is the mock recorder for MockEntry.
MockIterator is a mock of Iterator interface.
MockIteratorMockRecorder is the mock recorder for MockIterator.
MockSizeable is a mock of Sizeable interface.
MockSizeableMockRecorder is the mock recorder for MockSizeable.
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.
No description provided by the author
DomainMetricsScopeCache represents a interface for mapping domainID and scopeIdx to metricsScope.
Entry represents a key-value entry within the map.
Iterator represents the interface for cache iterators.
Sizeable is a interface that implements Size() function.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
GetCacheItemSizeFunc returns the cache item size in bytes.
No description provided by the author
RemovedFunc is a type for notifying applications when an item is scheduled for removal from the Cache.
ReplicationPolicy is the domain's replication policy, derived from domain's replication config.