cache

package
v0.0.0-...-23d643a Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

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

获得数据

func GetObject

func GetObject(key string, objDataPointer interface{}) error

获得数据

func Remove

func Remove(key string)

移除数据

func Set

func Set(key string, data interface{}) bool

设置数据

func SetEx

func SetEx(key string, data interface{}, second int64) bool

带时限设置数据

func SetObject

func SetObject(key string, data interface{}) bool

设置对象数据

func SetObjectEx

func SetObjectEx(key string, data interface{}, second int64) bool

限制时间设置对象数据

Types

This section is empty.

Jump to

Keyboard shortcuts

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