Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WithExpiration = cache.WithExpiration
Functions ¶
This section is empty.
Types ¶
type AutoInvalidateByAccountCache ¶
type AutoInvalidateByAccountCache struct {
// contains filtered or unexported fields
}
IN DEVELOPING!
type Cache ¶
type Cache[K comparable, V any] struct { // contains filtered or unexported fields }
func NewLRUCache ¶
func NewLRUCache[K comparable, V any](size int, metricName string) Cache[K, V]
func (*Cache[K, V]) Keys ¶
func (c *Cache[K, V]) Keys() []K
Keys returns the keys of the cache. the order is relied on algorithms.
func (*Cache[K, V]) Set ¶
func (c *Cache[K, V]) Set(key K, val V, opts ...cache.ItemOption)
Click to show internal directories.
Click to hide internal directories.