redis

package
v0.0.0-...-93dea64 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Copyright (c) 2017 devfeel pzrr@qq.com refer from dotweb

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

type RedisClient struct {
	Address string
	// contains filtered or unexported fields
}

func GetRedisClient

func GetRedisClient(address string) *RedisClient

func (*RedisClient) Append

func (rc *RedisClient) Append(key string, val interface{}) (interface{}, error)

func (*RedisClient) BLPop

func (rc *RedisClient) BLPop(key ...interface{}) (map[string]string, error)

func (*RedisClient) BRPop

func (rc *RedisClient) BRPop(key ...interface{}) (map[string]string, error)

func (*RedisClient) BRPopLPush

func (rc *RedisClient) BRPopLPush(source string, destination string) (string, error)

func (*RedisClient) DBSize

func (rc *RedisClient) DBSize() (int64, error)

func (*RedisClient) DECR

func (rc *RedisClient) DECR(key string) (int, error)

func (*RedisClient) Del

func (rc *RedisClient) Del(key string) (int64, error)

func (*RedisClient) Exists

func (rc *RedisClient) Exists(key string) (bool, error)

func (*RedisClient) Expire

func (rc *RedisClient) Expire(key string, timeOutSeconds int64) (int64, error)

func (*RedisClient) FlushDB

func (rc *RedisClient) FlushDB()

func (*RedisClient) Get

func (rc *RedisClient) Get(key string) (string, error)

func (*RedisClient) GetConn

func (rc *RedisClient) GetConn() redis.Conn

func (*RedisClient) GetObj

func (rc *RedisClient) GetObj(key string) (interface{}, error)

func (*RedisClient) HDel

func (rc *RedisClient) HDel(args ...interface{}) (int64, error)

func (*RedisClient) HExist

func (rc *RedisClient) HExist(hashID string, field string) (int, error)

func (*RedisClient) HGet

func (rc *RedisClient) HGet(hashID string, field string) (string, error)

func (*RedisClient) HGetAll

func (rc *RedisClient) HGetAll(hashID string) (map[string]string, error)

func (*RedisClient) HIncrBy

func (rc *RedisClient) HIncrBy(hashID string, field string, increment int) (int, error)

func (*RedisClient) HLen

func (rc *RedisClient) HLen(hashID string) (int64, error)

func (*RedisClient) HSet

func (rc *RedisClient) HSet(hashID string, field string, val string) error

func (*RedisClient) HSetNX

func (rc *RedisClient) HSetNX(hashID, field, value string) (interface{}, error)

func (*RedisClient) HVals

func (rc *RedisClient) HVals(hashID string) (interface{}, error)

func (*RedisClient) INCR

func (rc *RedisClient) INCR(key string) (int, error)

func (*RedisClient) LIndex

func (rc *RedisClient) LIndex(key string, index int) (string, error)

func (*RedisClient) LInsertAfter

func (rc *RedisClient) LInsertAfter(key string, pivot string, value string) (int, error)

func (*RedisClient) LInsertBefore

func (rc *RedisClient) LInsertBefore(key string, pivot string, value string) (int, error)

func (*RedisClient) LLen

func (rc *RedisClient) LLen(key string) (int, error)

func (*RedisClient) LPop

func (rc *RedisClient) LPop(key string) (string, error)

func (*RedisClient) LPush

func (rc *RedisClient) LPush(key string, value ...interface{}) (int, error)

func (*RedisClient) LPushX

func (rc *RedisClient) LPushX(key string, value string) (int, error)

func (*RedisClient) LRange

func (rc *RedisClient) LRange(key string, start int, stop int) ([]string, error)

func (*RedisClient) LRem

func (rc *RedisClient) LRem(key string, count int, value string) (int, error)

func (*RedisClient) LSet

func (rc *RedisClient) LSet(key string, index int, value string) (string, error)

func (*RedisClient) LTrim

func (rc *RedisClient) LTrim(key string, start int, stop int) (string, error)

func (*RedisClient) RPop

func (rc *RedisClient) RPop(key string) (string, error)

func (*RedisClient) RPopLPush

func (rc *RedisClient) RPopLPush(source string, destination string) (string, error)

func (*RedisClient) RPush

func (rc *RedisClient) RPush(key string, value ...interface{}) (int, error)

func (*RedisClient) RPushX

func (rc *RedisClient) RPushX(key string, value ...interface{}) (int, error)

func (*RedisClient) SAdd

func (rc *RedisClient) SAdd(key string, member ...interface{}) (int, error)

func (*RedisClient) SCard

func (rc *RedisClient) SCard(key string) (int, error)

func (*RedisClient) SDiff

func (rc *RedisClient) SDiff(key ...interface{}) ([]string, error)

func (*RedisClient) SDiffStore

func (rc *RedisClient) SDiffStore(destination string, key ...interface{}) (int, error)

func (*RedisClient) SInter

func (rc *RedisClient) SInter(key ...interface{}) ([]string, error)

func (*RedisClient) SInterStore

func (rc *RedisClient) SInterStore(destination string, key ...interface{}) (int, error)

func (*RedisClient) SIsMember

func (rc *RedisClient) SIsMember(key string, member string) (bool, error)

func (*RedisClient) SMembers

func (rc *RedisClient) SMembers(key string) ([]string, error)

func (*RedisClient) SMove

func (rc *RedisClient) SMove(source string, destination string, member string) (bool, error)

func (*RedisClient) SPop

func (rc *RedisClient) SPop(key string) (string, error)

func (*RedisClient) SRandMember

func (rc *RedisClient) SRandMember(key string, count int) ([]string, error)

func (*RedisClient) SRem

func (rc *RedisClient) SRem(key string, member ...interface{}) (int, error)

func (*RedisClient) SUnion

func (rc *RedisClient) SUnion(key ...interface{}) ([]string, error)

func (*RedisClient) SUnionStore

func (rc *RedisClient) SUnionStore(destination string, key ...interface{}) (int, error)

func (*RedisClient) Set

func (rc *RedisClient) Set(key string, val interface{}) (interface{}, error)

func (*RedisClient) SetNX

func (rc *RedisClient) SetNX(key, value string) (interface{}, error)

func (*RedisClient) SetWithExpire

func (rc *RedisClient) SetWithExpire(key string, val interface{}, timeOutSeconds int64) (interface{}, error)

Jump to

Keyboard shortcuts

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