redisclient

package
v0.0.0-...-2ec961a Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

type RedisClient struct {
	Key       string
	Field     string
	Re_prefix string
	RePool    *redis.Pool
	R_data    RedisIni
}

func NewRedisCient

func NewRedisCient() *RedisClient

func (*RedisClient) CloseConnect

func (that *RedisClient) CloseConnect()

func (*RedisClient) DelKey

func (that *RedisClient) DelKey() bool

func (*RedisClient) DoCMD

func (that *RedisClient) DoCMD(cmdname string, arg ...interface{}) (interface{}, error)

func (*RedisClient) Flushdb

func (that *RedisClient) Flushdb()

func (*RedisClient) GetKey

func (that *RedisClient) GetKey() string

func (*RedisClient) GetList

func (that *RedisClient) GetList() interface{}

func (*RedisClient) GetValue

func (that *RedisClient) GetValue() interface{}

func (*RedisClient) HDel

func (that *RedisClient) HDel()

func (*RedisClient) HExists

func (that *RedisClient) HExists() bool

func (*RedisClient) HGet

func (that *RedisClient) HGet() interface{}

func (*RedisClient) HSet

func (that *RedisClient) HSet(data interface{})

func (*RedisClient) HSetField

func (that *RedisClient) HSetField(name string) *RedisClient

func (*RedisClient) HasKey

func (that *RedisClient) HasKey() bool

func (*RedisClient) Hincby

func (that *RedisClient) Hincby(n int)

func (*RedisClient) Ltrim

func (that *RedisClient) Ltrim(start, stop int)

func (*RedisClient) SAdd

func (that *RedisClient) SAdd(data interface{})

func (*RedisClient) SISMEMBER

func (that *RedisClient) SISMEMBER(data interface{}) bool

func (*RedisClient) SMembers

func (that *RedisClient) SMembers() []interface{}

func (*RedisClient) SRem

func (that *RedisClient) SRem(data interface{})

func (*RedisClient) SetExValue

func (that *RedisClient) SetExValue(data interface{}, timeout int64)

func (*RedisClient) SetKey

func (that *RedisClient) SetKey(key string) *RedisClient

func (*RedisClient) SetList

func (that *RedisClient) SetList(data interface{})

func (*RedisClient) SetRedisPool

func (that *RedisClient) SetRedisPool(jsonstr string) *RedisClient

func (*RedisClient) SetValue

func (that *RedisClient) SetValue(data interface{})

func (*RedisClient) UpdateTTL

func (that *RedisClient) UpdateTTL(timeout int64)

type RedisIni

type RedisIni struct {
	RedisHost    string `json:"redis_host"`
	RedisPort    string `json:"redis_port"`
	RedisAuth    string `json:"redis_auth"`
	RedisDb      string `json:"redis_db"`
	RedisPerfix  string `json:"redis_perfix"`
	RedisMinpool int    `json:"redis_minpool"`
	RedisMaxpool int    `json:"redis_maxpool"`
	Timeout      int    `json:"timeout"`
}

Jump to

Keyboard shortcuts

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