cache

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type Cacher

type Cacher interface {
	Get(key string) ([]byte, error)
	Set(key string, value []byte) error
}

type PlainFiles

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

func NewFromDirectory

func NewFromDirectory(path string) PlainFiles

func (PlainFiles) Get

func (p PlainFiles) Get(key string) ([]byte, error)

func (PlainFiles) Set

func (p PlainFiles) Set(key string, value []byte) error

type ZipReadonly

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

func NewFromZip

func NewFromZip(path string) (*ZipReadonly, error)

func (*ZipReadonly) Get

func (c *ZipReadonly) Get(key string) ([]byte, error)

func (*ZipReadonly) Set

func (c *ZipReadonly) Set(key string, value []byte) error

Jump to

Keyboard shortcuts

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