cache

package
v0.0.0-...-e282ec7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
	ErrKeyExist = errors.New("key already exists")
)

Functions

func Decrement

func Decrement(key string, count uint64) (uint64, error)

func Delete

func Delete(key string) error

func Get

func Get(key string, val interface{}) error

func Increment

func Increment(key string, count uint64) (uint64, error)

func NewContext

func NewContext()

func Set

func Set(key string, val interface{}, d time.Duration) error

func SetIfNotExists

func SetIfNotExists(key string, val interface{}, d time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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