Documentation ¶
Index ¶
- type InMemoryMapDB
- func (db *InMemoryMapDB[T]) Clear()
- func (db *InMemoryMapDB[T]) Close()
- func (db *InMemoryMapDB[T]) Delete(key string)
- func (db *InMemoryMapDB[T]) Exist(key string) bool
- func (db *InMemoryMapDB[T]) Get(key string) []T
- func (db *InMemoryMapDB[T]) GetNClean(key string) []T
- func (db *InMemoryMapDB[T]) IsClosed() bool
- func (db *InMemoryMapDB[T]) IsEmpty() bool
- func (db *InMemoryMapDB[T]) Keys() []string
- func (db *InMemoryMapDB[T]) Len() int
- func (db *InMemoryMapDB[T]) Put(key string, value T)
- func (db *InMemoryMapDB[T]) Values() [][]T
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
Click to show internal directories.
Click to hide internal directories.