cache

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(key string) ([]byte, bool, error)
	GetJsonObj(key string, dst any) (bool, error)
	Set(key string, value []byte, expiration time.Duration) error
	SetJsonObj(key string, value any, expiration time.Duration) error
	Del(key string) error
	Keys(pattern string) []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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