utils

package
v0.0.0-...-62bdd2e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCache

func GetCache(_key interface{}) (interface{}, error)

*

  • @Description: 获取缓存
  • @param _key 缓存键

func RemoveCache

func RemoveCache(_key interface{}) (interface{}, error)

*

  • @Description: 根据键删除缓存
  • @param _key
  • @return interface{}
  • @return error

func SetCache

func SetCache(_key, _value interface{}, expires_in time.Duration)

*

  • @Description: 设置缓存
  • @param _key 缓存键
  • @param _value 缓存值
  • @param expires_in 有效时间,单位:秒

Types

This section is empty.

Jump to

Keyboard shortcuts

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