badgerBuffer

package
v2.0.33 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadgerBuffer

type BadgerBuffer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewBadgerBuffer

func NewBadgerBuffer(size int, db *badger.DB, cond *sync.Cond, sharedCond *atomic.Bool) (*BadgerBuffer, error)

func (*BadgerBuffer) Add

func (bb *BadgerBuffer) Add(key, val []byte) error

func (*BadgerBuffer) Flush

func (bb *BadgerBuffer) Flush() error

Jump to

Keyboard shortcuts

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