disk

package
v1.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disk

type Disk[T any] struct {
	// contains filtered or unexported fields
}

func NewDiskCache

func NewDiskCache[T any](bLogger badger.Logger, options schema.GPQOptions) (*Disk[T], error)

func (*Disk[T]) Close

func (d *Disk[T]) Close() error

func (*Disk[T]) DeleteBatch

func (d *Disk[T]) DeleteBatch(batch []*schema.DeleteMessage) error

func (*Disk[T]) DeleteSingle

func (d *Disk[T]) DeleteSingle(key []byte) error

func (*Disk[T]) ItemsInDB

func (d *Disk[T]) ItemsInDB() uint

func (*Disk[T]) ProcessBatch

func (d *Disk[T]) ProcessBatch(batch []*schema.Item[T]) error

func (*Disk[T]) RestoreFromDisk

func (d *Disk[T]) RestoreFromDisk() ([]*schema.Item[T], error)

func (*Disk[T]) WriteSingle

func (d *Disk[T]) WriteSingle(key []byte, value schema.Item[T]) error

Jump to

Keyboard shortcuts

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