client

package
v0.6.21 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BIN_REDIS_CLI = "bin/redis-cli"

	REDIS = "redis"
	INFO  = "info"
	SAVE  = "save"
)
View Source
const (
	NODEID = "nodeid"
	MASTER = "master"
	SLOTS  = "slots"
)
View Source
const (
	KEYS   = "keys"
	SCAN   = "scan"
	STRING = "string"
	HASH   = "hash"
	LIST   = "list"
	ZSET   = "zset"
	SET    = "set"
	GET    = "get"
	DEL    = "del"
	TTL    = "TTL"
)
View Source
const (
	COMMAND = "command"
)
View Source
const (
	CONFIG = "config"
)

Variables

View Source
var ErrReadLine = errors.New("read redis line error")

Functions

func NewClient

func NewClient(addr string) (*redis, error)

Types

type Client added in v0.6.12

type Client struct {
	// contains filtered or unexported fields
}

func (Client) Cmds added in v0.6.12

func (s Client) Cmds(m *ice.Message, cmd string, arg ...ice.Any) *ice.Message

func (Client) Info added in v0.6.12

func (s Client) Info(m *ice.Message, arg ...string)

func (Client) Inputs added in v0.6.12

func (s Client) Inputs(m *ice.Message, arg ...string)

func (Client) List added in v0.6.12

func (s Client) List(m *ice.Message, arg ...string) *ice.Message

func (Client) Save added in v0.6.14

func (s Client) Save(m *ice.Message, arg ...string)

func (Client) Scan added in v0.6.12

func (s Client) Scan(m *ice.Message, arg ...string)

func (Client) Xterm added in v0.6.12

func (s Client) Xterm(m *ice.Message, arg ...string)

type RedisPool

type RedisPool struct {
	sync.Pool
	// contains filtered or unexported fields
}

func NewRedisPool

func NewRedisPool(addr string, password string) *RedisPool

func (*RedisPool) Get

func (rp *RedisPool) Get() *redis

func (*RedisPool) Put

func (rp *RedisPool) Put(r *redis)

Jump to

Keyboard shortcuts

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