cache

package
v0.4.24-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: ISC Imports: 4 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 struct {
	// contains filtered or unexported fields
}

func New

func New(cacheDir string) (*Cache, error)

func (*Cache) Close

func (c *Cache) Close() error

func (*Cache) Delete

func (c *Cache) Delete(stateID [32]byte) error

func (*Cache) Exists

func (c *Cache) Exists(stateID [32]byte) bool

func (*Cache) Get

func (c *Cache) Get(stateID [32]byte) ([]byte, error)

func (*Cache) List

func (c *Cache) List() <-chan [32]byte

func (*Cache) Put

func (c *Cache) Put(stateID [32]byte, data []byte) error

Jump to

Keyboard shortcuts

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