cache

package
v0.0.0-...-f315b66 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheFile

type CacheFile struct {
	Path string
	Data []byte
}

type LRUCache

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

func New

func New(maxFiles int, cacheFolder string) (*LRUCache, error)

func (*LRUCache) ClearCache

func (c *LRUCache) ClearCache() error

func (*LRUCache) GetFile

func (c *LRUCache) GetFile(path string) ([]byte, error)

func (*LRUCache) PutFile

func (c *LRUCache) PutFile(path string, data []byte) error

Jump to

Keyboard shortcuts

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