qredis

package
v0.0.0-...-c863eb0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RCmd

func RCmd(rclient redis.Conn, cmd string, args ...interface{}) (interface{}, error)

func RDel

func RDel(rclient redis.Conn, key string)

func RHGetMap

func RHGetMap(rclient redis.Conn, key string, field string) (map[string]interface{}, error)

func RHMSet

func RHMSet(rclient redis.Conn, key string, value interface{}) (bool, error)

func RHSetMap

func RHSetMap(rclient redis.Conn, key string, field string, value interface{}) (bool, error)

func RParse

func RParse(cmd string, rawreply interface{}, err error) (interface{}, error)

func RParseScan

func RParseScan(val interface{}, err error) (interface{}, error)

Types

type DaoRedis

type DaoRedis struct {
	qdao.Config
	// contains filtered or unexported fields
}

func (*DaoRedis) Agent

func (o *DaoRedis) Agent() (interface{}, error)

func (*DaoRedis) Close

func (o *DaoRedis) Close() error

func (*DaoRedis) Configure

func (o *DaoRedis) Configure(
	name string, daotype string,
	host string, port int, user string, pass string, database string,
	options map[string]interface{}) error

func (*DaoRedis) Conn

func (o *DaoRedis) Conn() (interface{}, error)

func (*DaoRedis) Delete

func (o *DaoRedis) Delete(db string, group string, id interface{}, opt qdao.DOpt) (interface{}, error)

func (*DaoRedis) Deletes

func (o *DaoRedis) Deletes(db string, group string, ids []interface{}, opt qdao.DOpt) (interface{}, error)

func (*DaoRedis) ExistDB

func (o *DaoRedis) ExistDB(db string) (bool, error)

func (*DaoRedis) ExistGroup

func (o *DaoRedis) ExistGroup(db string, group string) (bool, error)

func (*DaoRedis) Exists

func (o *DaoRedis) Exists(db string, group string, ids []interface{}) (int64, error)

func (*DaoRedis) Get

func (o *DaoRedis) Get(db string, group string, id interface{}, unmarshal int, opt qdao.QOpt) (ret interface{}, err error)

func (*DaoRedis) GetConn

func (o *DaoRedis) GetConn(db string) redis.Conn

func (*DaoRedis) GetDB

func (o *DaoRedis) GetDB(db string, opt qdao.QOpt) (interface{}, error)

func (*DaoRedis) GetGroup

func (o *DaoRedis) GetGroup(db string, group string, opt qdao.QOpt) (interface{}, error)

func (*DaoRedis) Gets

func (o *DaoRedis) Gets(db string, group string, ids []interface{}, unmarshal int, opt qdao.QOpt) (rets []interface{}, err error)

func (*DaoRedis) IsConnected

func (o *DaoRedis) IsConnected() bool

func (*DaoRedis) Keys

func (o *DaoRedis) Keys(db string, group string, wildcard string, opt qdao.QOpt) (keys []string, err error)

func (*DaoRedis) List

func (o *DaoRedis) List(db string, group string, from int, size int, unmarshal int, opt qdao.QOpt) (rets []interface{}, cursor int, err error)

func (*DaoRedis) Query

func (o *DaoRedis) Query(db string, query string, args []interface{}, opt qdao.QOpt) (interface{}, error)

func (*DaoRedis) Scan

func (o *DaoRedis) Scan(db string, group string, from int, size int, unmarshal int, query ...interface{}) (ret []interface{}, cursor int, total int, err error)

func (*DaoRedis) ScanAsMap

func (o *DaoRedis) ScanAsMap(db string, group string, from int, size int, unmarshal int, query ...interface{}) (ret map[string]interface{}, cursor int, total int, err error)

func (*DaoRedis) Script

func (o *DaoRedis) Script(db string, group string, id interface{}, script string, args []interface{}, opt qdao.QOpt) (interface{}, error)

func (*DaoRedis) SelectDB

func (o *DaoRedis) SelectDB(db string) error

func (*DaoRedis) Update

func (o *DaoRedis) Update(db string, group string, id interface{}, val interface{}, override bool, marshal int, opt qdao.UOpt) (interface{}, error)

func (*DaoRedis) UpdateBatch

func (o *DaoRedis) UpdateBatch(db string, groups []string, ids []interface{}, vals []interface{}, override bool, marshal int, opt qdao.UOpt) (interface{}, error)

func (*DaoRedis) UpdateDB

func (o *DaoRedis) UpdateDB(db string, options interface{}, create bool, override bool, opt qdao.UOpt) (interface{}, error)

func (*DaoRedis) UpdateGroup

func (o *DaoRedis) UpdateGroup(db string, group string, options interface{}, create bool, override bool, opt qdao.UOpt) (interface{}, error)

func (*DaoRedis) Updates

func (o *DaoRedis) Updates(db string, group string, ids []interface{}, vals []interface{}, override bool, marshal int, opt qdao.UOpt) (interface{}, error)

Jump to

Keyboard shortcuts

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