redis

package
v0.0.0-...-701726f Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: EPL-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheKeyRateLimit = "rateLimit"
	CacheKeyOverload  = "overload"
)

Variables

This section is empty.

Functions

func AccessTotalIncrBy

func AccessTotalIncrBy(key string, total int, expiration int)

AccessTotalIncrBy 访问数量增加次数

func GetAccessTotalAndTimeMillis

func GetAccessTotalAndTimeMillis(cacheKey string) (int, int64)

GetAccessTotalAndTimeMillis 获取访问总数和计数时间

func GetAccessTotalCacheKey

func GetAccessTotalCacheKey(routeId int, code string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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