cache

package
v0.55.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Set(ctx context.Context, key string, value []byte) error
	Get(ctx context.Context, ey string) ([]byte, error)
}

type DirCache

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

func NewDirCache

func NewDirCache(path string) *DirCache

func (*DirCache) Get

func (d *DirCache) Get(ctx context.Context, key string) ([]byte, error)

func (*DirCache) Set

func (d *DirCache) Set(ctx context.Context, key string, value []byte) error

Jump to

Keyboard shortcuts

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