fs

package
v0.0.0-...-3b24cdd Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: BSL-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystemCache

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

func NewFileSystemCache

func NewFileSystemCache(cacheDir string) (*FileSystemCache, error)

NewFileSystemCache creates a new file system cache with the specified directory for storage.

func (*FileSystemCache) Pull

func (fsc *FileSystemCache) Pull(key string) ([]byte, error)

Pull retrieves the data from the cache.

func (*FileSystemCache) Push

func (fsc *FileSystemCache) Push(key string, value []byte) error

Push stores the data in the cache.

Jump to

Keyboard shortcuts

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