cachedb

package
v0.0.0-...-e081c89 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Path string = os.TempDir() + "/murex-temp-cache.db" // allows tests to run without contaminating regular cachedb

)

Functions

func CloseDb

func CloseDb()

func CreateTable

func CreateTable(namespace string)

func Flush

func Flush(ctx context.Context, namespace string) ([]string, error)

func List

func List(ctx context.Context, namespace string) ([]listT, error)

func Read

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

func Trim

func Trim(ctx context.Context, namespace string) ([]string, error)

func Write

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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