Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketCache ¶
type BucketCache[K comparable, V any] struct { // contains filtered or unexported fields }
func New ¶
func New[K comparable, V any](cacheSize uint32, maxBucketSize uint32, hash freelru.HashKeyCallback[K]) (*BucketCache[K, V], error)
func (*BucketCache[K, V]) AddToBucket ¶
func (b *BucketCache[K, V]) AddToBucket(k K, val V) bool
func (*BucketCache[K, V]) ForceAddToBucket ¶
func (b *BucketCache[K, V]) ForceAddToBucket(k K, val V)
func (*BucketCache[K, V]) GetBucket ¶
func (b *BucketCache[K, V]) GetBucket(k K) []V
Click to show internal directories.
Click to hide internal directories.