Documentation
¶
Index ¶
- type ARC
- func (c *ARC[T]) ARCParams() ARCParams
- func (c *ARC[T]) Add(key T) (ok bool)
- func (c *ARC[T]) Clear()
- func (c *ARC[T]) Evict() (evicted T, ok bool)
- func (c *ARC[T]) EvictSkip(skip func(T) bool) (evicted T, ok bool)
- func (c *ARC[T]) Promote(key T) bool
- func (c *ARC[T]) Stats() map[string]any
- func (c *ARC[T]) Values() iter.Seq[T]
- type ARCParams
- type Policy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ARC ¶
type ARC[T comparable] struct { // contains filtered or unexported fields }
func NewARC ¶
func NewARC[T comparable]() *ARC[T]
Click to show internal directories.
Click to hide internal directories.