redis

package
v0.0.0-...-da80ac2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(key string)

func Exists

func Exists(key string) bool

通用

func Expire

func Expire(key string, expire time.Duration)

func Get

func Get(key string) string

func GetRdb

func GetRdb() *redis.Client

func HGet

func HGet(key string, field string) string

func HGetAll

func HGetAll(key string) map[string]string

func HSet

func HSet(key string, field string, value interface{})

哈希

func Set

func Set(key string, value string)

字符串

func SetEX

func SetEX(key string, value string, expiration time.Duration)

func TTL

func TTL(key string) time.Duration

Types

This section is empty.

Jump to

Keyboard shortcuts

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