Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[K comparable, V any] interface { Add(K, V) (evicted bool) Purge() Get(K) (value V, ok bool) Remove(K) (present bool) }
Cache is the contract of the cache implementation
type InMemory ¶
type InMemory[K comparable, V any] struct { // contains filtered or unexported fields }
func NewInMemory ¶
func NewInMemory[K comparable, V any]() *InMemory[K, V]
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewCacheService ¶
Click to show internal directories.
Click to hide internal directories.