cacheutil

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCacheDir

func GetCacheDir(appId string) string

Types

type Cache

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

func NewCache

func NewCache(appId string, subdir string) *Cache

func (*Cache) Has

func (c *Cache) Has(key string) bool

func (*Cache) Path

func (c *Cache) Path() string

func (*Cache) Retrieve

func (c *Cache) Retrieve(key string) ([]byte, error)

func (*Cache) Store

func (c *Cache) Store(key string, data []byte) error

Jump to

Keyboard shortcuts

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