nutsdb

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const GLOBAL = "m41gA7omIWU4s"

Variables

This section is empty.

Functions

This section is empty.

Types

type NutsDB

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

func Open

func Open(path string, opts ...NutsDBOption) *NutsDB

func (*NutsDB) BatchSet

func (b *NutsDB) BatchSet(kvs map[string][]byte) error

func (*NutsDB) Close

func (b *NutsDB) Close() error

func (*NutsDB) Del

func (b *NutsDB) Del(k []byte) (err error)

func (*NutsDB) Get

func (b *NutsDB) Get(k []byte) (v []byte)

func (*NutsDB) Name

func (b *NutsDB) Name() string

func (*NutsDB) Prefix

func (b *NutsDB) Prefix(prefix []byte) (res [][]byte)

func (*NutsDB) Range

func (b *NutsDB) Range(start, limit []byte) (res [][]byte)

func (*NutsDB) Scan

func (b *NutsDB) Scan() (res [][]byte)

func (*NutsDB) Set

func (b *NutsDB) Set(k, v []byte) (err error)

func (*NutsDB) SetTTL

func (b *NutsDB) SetTTL(k, v []byte, expire time.Duration) (err error)

func (*NutsDB) Suffix

func (b *NutsDB) Suffix(suffix []byte) (res [][]byte)

type NutsDBOption added in v1.0.21

type NutsDBOption func(nutsdb.Options) nutsdb.Options

Jump to

Keyboard shortcuts

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