cache

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

*

Index

Constants

This section is empty.

Variables

View Source
var (
	Cache gcache.Cache
)

Functions

func Exis

func Exis(key interface{}) bool

func Get

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

func GetAll

func GetAll(checkExpired bool) map[interface{}]interface{}

func GetBig

func GetBig(key string) (string, error)

获取较大数据

func GetEx

func GetEx(key interface{}) (interface{}, bool)

func Set

func Set(key, value interface{}) error

func SetBig

func SetBig(key, val string) error

存储较大数据

func SetBigWithExpire

func SetBigWithExpire(key, value string, expiration time.Duration) error

func SetWithExpire

func SetWithExpire(key, value interface{}, expiration 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