cache

package
v0.0.0-...-e537141 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key = db.Key

type MultiKey

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

func (MultiKey) GetMultiKey

func (m MultiKey) GetMultiKey(keys ...Key) (val Val, ok bool)

func (MultiKey) GetVal

func (m MultiKey) GetVal(key Key) (val Val, ok bool)

func (MultiKey) JoinKeys

func (m MultiKey) JoinKeys(keys []Key) (k Key)

func (MultiKey) MustGetMultiKey

func (m MultiKey) MustGetMultiKey(keys ...Key) (val Val, err error)

func (MultiKey) PutVal

func (m MultiKey) PutVal(key Key, val Val) (err error)

type OfFS

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

type OfString

type OfString interface {
	GetVal(key Key) (val Val, ok bool)
	PutVal(key Key, val Val) (err error)
}

type Val

type Val = string

func MustBeValid

func MustBeValid(key Key, val Val, ok bool) (v Val, err error)

func MustGet

func MustGet(os OfString, key Key) (val Val, err error)

Jump to

Keyboard shortcuts

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