cache

package
v0.86.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedToInitialize = errors.New("cache initialization failed")
	ErrBlobNotFound       = errors.New("blob with the specified key not found")
	ErrInternal           = errors.New("internal cache error")
)

Functions

This section is empty.

Types

type Cache

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

func New

func New(dir string, namespace string) (*Cache, error)

func (*Cache) Delete added in v0.69.0

func (c *Cache) Delete(key string) error

func (*Cache) Get

func (c *Cache) Get(key string) (*os.File, error)

func (*Cache) Put

func (c *Cache) Put(key string) (*PutOperation, error)

type PutOperation

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

func (*PutOperation) Finalize

func (putOp *PutOperation) Finalize() error

func (*PutOperation) Write

func (putOp *PutOperation) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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