redis

package
v0.0.0-...-983cbdb Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 6 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) int64

func Get

func Get(key string) string

func HDel

func HDel(key, field string)

func HExists

func HExists(key, field string) bool

func HGet

func HGet(key, field string) string

func HGetAll

func HGetAll(key string) map[string]string

func HIncrBy

func HIncrBy(key, field string, num int64) int64

func HKeys

func HKeys(key string) []string

func HMGet

func HMGet(key string, fields []string) []interface{}

func HMSet

func HMSet(key string, fields map[string]interface{})

func HSet

func HSet(key, field, value string)

func LIndex

func LIndex(key string, index int64) string

func LLen

func LLen(key string) int64

func LPop

func LPop(key string)

func LPush

func LPush(key string, value string)

func LRange

func LRange(key string, start, stop int64) []string

func LRem

func LRem(key, value string)

func LSet

func LSet(key string, index int64, value string)

func LTrim

func LTrim(key string, start, stop int64)

func Lock

func Lock(key, value string)

func Pipeline

func Pipeline() redis.Pipeliner

func RPush

func RPush(key string, value string)

func Set

func Set(key, value string)

func SetNX

func SetNX(key, value, timeType string, timeLeft time.Duration)

func SetVerificationCode

func SetVerificationCode(key, value string)

func StringStringMapCmd

func StringStringMapCmd() []*redis.StringStringMapCmd

func Test

func Test()

func TxPipeline

func TxPipeline() redis.Pipeliner

Types

type Conf

type Conf struct {
	RedisIp       string
	RedisPort     string
	RedisPassword string
	Db            int
}

Jump to

Keyboard shortcuts

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