redisHelper

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchDeleteRedisCache

func BatchDeleteRedisCache(client redis.Cmdable, prefix string)

BatchDeleteRedisCache 批量删除信息缓存

func DeleteRedisCache

func DeleteRedisCache(client redis.Cmdable, key string)

DeleteRedisCache 删除信息缓存

func GetRedisCache

func GetRedisCache(client redis.Cmdable, key string) string

GetRedisCache 获取信息缓存

func GetRedisCacheKeyByParams

func GetRedisCacheKeyByParams(module string, params map[string]interface{}) string

GetRedisCacheKey 根据参数获取 Redis key

func SaveRedisCacheWithExpiration added in v0.0.11

func SaveRedisCacheWithExpiration(client redis.Cmdable, key, value string, expiration time.Duration) error

SaveRedisCacheWithExpiration 缓存信息,并设置有效期

func SaveRedisCacheWithoutExpiration added in v0.0.11

func SaveRedisCacheWithoutExpiration(client redis.Cmdable, key, value string) error

SaveRedisCacheWithoutExpiration 缓存信息(无有效期)

Types

This section is empty.

Jump to

Keyboard shortcuts

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