cache

package
v0.0.0-...-6e4d488 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteCache

func DeleteCache(key string) (int64, error)

DeleteCache 删除缓存数据

func GetCacheBytes

func GetCacheBytes(key string) ([]byte, error)

GetCacheBytes 获取bytes类型数据

func GetCacheString

func GetCacheString(key string) (string, error)

GetCacheString 获取字符串类型数据

func GetCacheUint

func GetCacheUint(key string) (uint64, error)

GetCacheUint 获取uint类型数据

func Init

func Init() error

Init 初始化缓存服务

func SetCache

func SetCache(key string, value interface{}, expiration time.Duration) error

SetCache 缓存数据

Types

This section is empty.

Jump to

Keyboard shortcuts

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