palletcache

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: GPL-3.0, GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Isredispool bool
)

Functions

func Del

func Del(tag, key string) bool

func Get

func Get(tag, key string) (interface{}, bool)

func Store

func Store(tag, key string, value interface{}, expire int) error

Types

type ICache

type ICache interface {
	Set(key, value []byte, expireSeconds int) (err error)
	Get(key []byte) (value []byte, err error)
	Del(key []byte) bool
	Clear()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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