Documentation ¶
Index ¶
- Variables
- func Delete(ctx context.Context, keys ...string) (err error)
- func Get(ctx context.Context, key string) (entry []byte, err error)
- func Iterate(ctx context.Context, m cache.EntryKeyMatcher, a cache.EntryAccessor) (err error)
- func List(ctx context.Context, keys ...string) (entries [][]byte, err error)
- func Set(ctx context.Context, key string, entry []byte) (err error)
- func Underlay[T any]() (T, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Stack = vars.SetOnce[[]cache.Cache]{}
Functions ¶
func Get ¶
Get reads entry for the given key, it returns an ErrEntryNotFound when no entry exists for the given key.
func Iterate ¶
func Iterate(ctx context.Context, m cache.EntryKeyMatcher, a cache.EntryAccessor) (err error)
Iterate iterates all entries of the whole cache, breaks with none nil error, do not do time-expensive callback during iteration.
func List ¶
List reads entries for the given key list, it returns an entry list with nil value when no entry exists for the given key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.