cache

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCache

func AddCache(k string, x interface{}, d time.Duration)

Add() 加入缓存

func DeleteCache

func DeleteCache(k string)

删除 cache

func GetCache

func GetCache(k string) (interface{}, bool)

func IncrementIntCache

func IncrementIntCache(k string, n int) (num int, err error)

IncrementInt() 对已存在的key 值自增n

func SetCache

func SetCache(k string, x interface{}, d time.Duration)

func SetDefaultCache

func SetDefaultCache(k string, x interface{})

设置cache 无时间参数

Types

This section is empty.

Jump to

Keyboard shortcuts

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