storage

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	StoreOne(key string, cache []byte) error

	StoreList(key string, cache []byte) error

	LoadOne(key string) ([]byte, error)

	LoadList(key string) ([]byte, error)

	Delete(key string) error
}

func CreateStorage

func CreateStorage(config *config.LiteServerConfig) Storage

func NewBadgerStorage

func NewBadgerStorage(path string) Storage

func NewBoltStorage

func NewBoltStorage(dbFile string) Storage

func NewFileStorage

func NewFileStorage(filePath string) Storage

func NewMemoryStorage

func NewMemoryStorage() Storage

func NewPebbleStorage added in v0.7.0

func NewPebbleStorage(path string) Storage

Jump to

Keyboard shortcuts

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