partition

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PartitionCache

type PartitionCache[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func Make

func Make[K comparable, V any](maker map_cache.Maker[K, V], n int, cn int) *PartitionCache[K, V]

func MakeSafe

func MakeSafe[K comparable, V any](maker map_cache.SafeMaker[K, V], n int, cn int) *PartitionCache[K, V]

func (*PartitionCache[K, V]) All

func (c *PartitionCache[K, V]) All() iter.Seq[V]

func (*PartitionCache[K, V]) Delete

func (c *PartitionCache[K, V]) Delete(key K)

func (*PartitionCache[K, V]) Get

func (c *PartitionCache[K, V]) Get(k K) (v V, ok bool)

func (*PartitionCache[K, V]) Len

func (c *PartitionCache[K, V]) Len() int

func (*PartitionCache[K, V]) Put

func (c *PartitionCache[K, V]) Put(key K, v V)

func (*PartitionCache[K, V]) Scan

func (c *PartitionCache[K, V]) Scan() iter.Seq2[K, V]

Jump to

Keyboard shortcuts

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