Documentation ¶
Index ¶
- type Bytes
- type BytesLike
- type LRU
- func (l *LRU[K, V]) Available() int64
- func (l *LRU[K, V]) Capacity() int64
- func (l *LRU[K, V]) DeletePaths(ctx context.Context, paths []string)
- func (l *LRU[K, V]) Flush()
- func (l *LRU[K, V]) Get(ctx context.Context, key K) (value V, ok bool)
- func (l *LRU[K, V]) Set(ctx context.Context, key K, value V)
- func (l *LRU[K, V]) Used() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LRU ¶
type LRU[K comparable, V BytesLike] struct { sync.Mutex // contains filtered or unexported fields }
func New ¶
func New[K comparable, V BytesLike]( capacity int64, postSet func(keySet K, valSet V), postGet func(key K, value V), postEvict func(keyEvicted K, valEvicted V), ) *LRU[K, V]
func (*LRU[K, V]) DeletePaths ¶ added in v1.1.1
Click to show internal directories.
Click to hide internal directories.