inmemorymapdb

package
v0.0.59 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 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 InMemoryMapDB

type InMemoryMapDB[T any] struct {
	// contains filtered or unexported fields
}

func NewInMemoryMapDB

func NewInMemoryMapDB[T any](defaultInitalCap int) *InMemoryMapDB[T]

func (*InMemoryMapDB[T]) Clear

func (db *InMemoryMapDB[T]) Clear()

func (*InMemoryMapDB[T]) Close

func (db *InMemoryMapDB[T]) Close()

func (*InMemoryMapDB[T]) Delete

func (db *InMemoryMapDB[T]) Delete(key string)

func (*InMemoryMapDB[T]) Exist

func (db *InMemoryMapDB[T]) Exist(key string) bool

func (*InMemoryMapDB[T]) Get

func (db *InMemoryMapDB[T]) Get(key string) []T

func (*InMemoryMapDB[T]) GetNClean

func (db *InMemoryMapDB[T]) GetNClean(key string) []T

func (*InMemoryMapDB[T]) IsClosed

func (db *InMemoryMapDB[T]) IsClosed() bool

func (*InMemoryMapDB[T]) IsEmpty

func (db *InMemoryMapDB[T]) IsEmpty() bool

func (*InMemoryMapDB[T]) Keys

func (db *InMemoryMapDB[T]) Keys() []string

func (*InMemoryMapDB[T]) Len

func (db *InMemoryMapDB[T]) Len() int

func (*InMemoryMapDB[T]) Put

func (db *InMemoryMapDB[T]) Put(key string, value T)

func (*InMemoryMapDB[T]) Values

func (db *InMemoryMapDB[T]) Values() [][]T

Jump to

Keyboard shortcuts

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