bitcask

package
v0.0.0-...-1df5c64 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MAX_PART_CASH_SIZE = 1024 * 1024 * 100
)

Functions

This section is empty.

Types

type Data

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

func Connect

func Connect(path string) (*Data, error)

Connect init data

func (*Data) Add

func (data *Data) Add(key, value []byte) error

Add add value by key

func (*Data) Get

func (data *Data) Get(key []byte) ([]byte, error)

Get get value by key

func (*Data) GetAll

func (data *Data) GetAll() (map[string][]byte, error)

GetAll get all values

func (*Data) Remove

func (data *Data) Remove(key []byte) error

Remove remove value by key

Jump to

Keyboard shortcuts

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