cache

package
v0.0.0-...-6177508 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCacheKey

func CreateCacheKey(value string) (cacheKey string)

func DelKey

func DelKey(key string) (v int64)

func ExpireAt

func ExpireAt(key string, expire time.Time) (ex bool)

func FlushDB

func FlushDB()

func GetAllKeys

func GetAllKeys() (v []string)

func GetKey

func GetKey(key string) (string, error)

GetKey get key of redis

func GetListKeys

func GetListKeys(key string) (v []string)

func GetTTL

func GetTTL(key string) (td time.Duration)

func NewRedisClient

func NewRedisClient()

NewRedisClient

func SetKey

func SetKey(key string, value interface{}) error

SetKey set key value redis

func SetKeyWithExpired

func SetKeyWithExpired(key string, value interface{}, expiredStr string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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