Documentation ¶
Index ¶
- Variables
- func CloseDb()
- func CreateTable(namespace string)
- func Flush(ctx context.Context, namespace string) ([]string, error)
- func List(ctx context.Context, namespace string) ([]listT, error)
- func Read(namespace string, key string, ptr any) bool
- func Trim(ctx context.Context, namespace string) ([]string, error)
- func Write(namespace string, key string, value any, ttl time.Time)
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 CreateTable ¶
func CreateTable(namespace string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.