bucketcache

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL