bitcask: github.com/prologic/bitcask Index | Files | Directories

package bitcask

import "github.com/prologic/bitcask"

Index

Package Files

bitcask.go options.go

Constants

const (
    DefaultMaxDatafileSize = 1 << 20 // 1MB
    DefaultMaxKeySize      = 64      // 64 bytes
    DefaultMaxValueSize    = 1 << 16 // 65KB
)

func Merge Uses

func Merge(path string, force bool) error

func NewDefaultConfig Uses

func NewDefaultConfig() *config

func WithMaxDatafileSize Uses

func WithMaxDatafileSize(size int) option

func WithMaxKeySize Uses

func WithMaxKeySize(size int) option

func WithMaxValueSize Uses

func WithMaxValueSize(size int) option

type Bitcask Uses

type Bitcask struct {
    *flock.Flock
    // contains filtered or unexported fields
}

func Open Uses

func Open(path string, options ...option) (*Bitcask, error)

func (*Bitcask) Close Uses

func (b *Bitcask) Close() error

func (*Bitcask) Delete Uses

func (b *Bitcask) Delete(key string) error

func (*Bitcask) Fold Uses

func (b *Bitcask) Fold(f func(key string) error) error

func (*Bitcask) Get Uses

func (b *Bitcask) Get(key string) ([]byte, error)

func (*Bitcask) Put Uses

func (b *Bitcask) Put(key string, value []byte) error

func (*Bitcask) Scan Uses

func (b *Bitcask) Scan(prefix string, f func(key string) error) error

func (*Bitcask) Sync Uses

func (b *Bitcask) Sync() error

type Option Uses

type Option option

Option ...

Directories

PathSynopsis
internal
internal/proto
internal/streampb
proto

Package bitcask imports 10 packages (graph). Updated 2019-03-18. Refresh now. Tools for package owners.