badgerepo

package
v0.0.0-...-b1bbf48 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeFileInfo

func DecodeFileInfo(bytes []byte) (cacheproxy.FileInformation, error)

func EncodeFileInfo

func EncodeFileInfo(fileInfo cacheproxy.FileInformation) ([]byte, error)

Types

type RemoteFileCache

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

func NewRemoteFileCache

func NewRemoteFileCache(dbPath string) (*RemoteFileCache, error)

NewRemoteFileCache initializes a new Badger database instance for the RemoteFileCache

func (*RemoteFileCache) Close

func (r *RemoteFileCache) Close() error

Close closes the Badger database

func (*RemoteFileCache) Get

Get retrieves a value by key from the Badger database

func (*RemoteFileCache) Keys

func (r *RemoteFileCache) Keys() (keys []string, err error)

func (*RemoteFileCache) Set

func (r *RemoteFileCache) Set(key string, information cacheproxy.FileInformation) error

Set stores a key-value pair in the Badger database

Jump to

Keyboard shortcuts

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