identitymap

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadUncommitted IsolationLevel = iota
	ReadCommitted                  = iota
	RepeatableReads                = iota
	Serializable                   = iota
)

Variables

View Source
var (
	ErrObjectAlreadyWatched = errors.New("")
	ErrObjectNotFound       = errors.New("")
)
View Source
var (
	ErrNonexistentObject          = errors.New("")
	ErrDeniedOperationForStrategy = errors.New("")
)

Functions

This section is empty.

Types

type IdentityMap

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

func NewIdentityMap

func NewIdentityMap[K comparable, V any](size uint) *IdentityMap[K, V]

func (*IdentityMap[K, V]) Add

func (im *IdentityMap[K, V]) Add(key K, object V) (bool, error)

func (*IdentityMap[K, V]) Get

func (im *IdentityMap[K, V]) Get(key K) (object V, err error)

func (*IdentityMap[K, V]) Has

func (im *IdentityMap[K, V]) Has(key K) bool

func (*IdentityMap[K, V]) SetIsolationLevel

func (im *IdentityMap[K, V]) SetIsolationLevel(level IsolationLevel)

func (*IdentityMap[K, V]) SetSize

func (im *IdentityMap[K, V]) SetSize(size uint)

type IsolationLevel

type IsolationLevel uint

type IsolationStrategy

type IsolationStrategy[K comparable, V any] interface {
	// contains filtered or unexported methods
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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