nutsdb

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 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 Table

type Table struct {
	// contains filtered or unexported fields
}

func NewTable

func NewTable(db *nutsdb.DB, name string, ttl uint32) (*Table, error)

func (*Table) Delete

func (tb *Table) Delete(ctx context.Context, key []byte) error

func (*Table) Get

func (tb *Table) Get(ctx context.Context, key []byte, fn func(val []byte) error) error

func (*Table) MGet

func (tb *Table) MGet(ctx context.Context, keys [][]byte, fn func(val []byte) error) error

func (*Table) MSet

func (tb *Table) MSet(ctx context.Context, args ...[]byte) error

func (Table) Name added in v1.1.3

func (tb Table) Name() string

func (*Table) Set

func (tb *Table) Set(ctx context.Context, key []byte, val []byte) error

func (Table) TTL added in v1.1.3

func (tb Table) TTL() uint32

Jump to

Keyboard shortcuts

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