pebble

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pebble

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

func Open

func Open(path string, opts ...PebbleOption) *Pebble

func (*Pebble) BatchSet

func (peb *Pebble) BatchSet(kvs map[string][]byte) error

func (*Pebble) Close

func (peb *Pebble) Close() error

func (*Pebble) Del

func (peb *Pebble) Del(k []byte) (err error)

func (*Pebble) Get

func (peb *Pebble) Get(k []byte) (v []byte)

func (*Pebble) Name added in v1.0.15

func (peb *Pebble) Name() string

func (*Pebble) Prefix

func (peb *Pebble) Prefix(k []byte) (res [][]byte)

func (*Pebble) Range

func (peb *Pebble) Range(start, limit []byte) (res [][]byte)

func (*Pebble) Scan

func (peb *Pebble) Scan() (res [][]byte)

func (*Pebble) Set

func (peb *Pebble) Set(k, v []byte) (err error)

func (*Pebble) SetTTL

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

func (*Pebble) Suffix

func (peb *Pebble) Suffix(k []byte) (res [][]byte)

type PebbleOption

type PebbleOption func(pebble.Options) pebble.Options

Jump to

Keyboard shortcuts

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