cache

package
v0.0.0-...-e4882c5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NS_INPUTBOXW_HISTORY = "inputboxw_history"
	NS_NOTESW_FILES      = "notesw_files"
)

Variables

This section is empty.

Functions

func Clear

func Clear(ctx context.Context) (any, error)

Clear the cache completely

func CreateHash

func CreateHash(cmdLine string, block []rune) string

func Days

func Days(ttl int) time.Time

func DbEnabled

func DbEnabled() bool

func DbPath

func DbPath() string

func Dump

func Dump(ctx context.Context) (any, error)

func InitCache

func InitCache()

func ListNamespaces

func ListNamespaces() []string

func Read

func Read(namespace string, key string, ptr any) bool

func Seconds

func Seconds(ttl int) time.Time

func SetPath

func SetPath(path string)

func Trim

func Trim(ctx context.Context) (any, error)

Trim removes stale cache values from the cache databases

func Write

func Write(namespace string, key string, value any, ttl time.Time)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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