pebble

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func NewPebbleDb

func NewPebbleDb(file string, cache int, handles int, readonly bool) (*Database, error)

NewPebbleDb returns a wrapped pebble DB object. The namespace is the prefix that the metrics reporting should use for surfacing internal stats.

func (*Database) Close

func (d *Database) Close() error

func (*Database) Delete

func (d *Database) Delete(key string) error

func (*Database) Get

func (d *Database) Get(key string) ([]byte, error)

func (*Database) Has

func (d *Database) Has(key string) (bool, error)

func (*Database) Put

func (d *Database) Put(key string, value []byte) error

Jump to

Keyboard shortcuts

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