cache

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear() bool

Clear the cache

func Get

func Get(key string) []byte

Get cached data

func GetOrSet

func GetOrSet(key string, value interface{}, expire ...int) []byte

GetOrSet returns existing value or if record doesn't exist

func Remove

func Remove(key string) bool

Remove Delete the cache

func Set

func Set(key string, value interface{}, expire ...int)

Set the cache data

func Sets

func Sets(value interface{}, expire ...int)

Sets cache data based on value

Types

This section is empty.

Jump to

Keyboard shortcuts

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