Documentation ¶
Index ¶
- Constants
- func HashRedis(addrs []string, key string) string
- type RedisEntry
- type RedisPool
- func (self *RedisPool) Cmd(multi_args map[string][]interface{}) map[string]*redis.Reply
- func (self *RedisPool) CmdSingle(addr string, cmd []interface{}) *redis.Reply
- func (self *RedisPool) CmdSingleRetry(addr string, cmd []interface{}, retrytimes int) *redis.Reply
- func (self *RedisPool) EvalSingle(addr string, key string, cmd_args []interface{}) *redis.Reply
- func (self *RedisPool) LoadLuaFile(key, file string) error
Constants ¶
View Source
const ( TIMEOUT_INTV int64 = 200 POOL_SIZE int = 512 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisEntry ¶
type RedisEntry struct {
// contains filtered or unexported fields
}
func (*RedisEntry) Cmd ¶
func (self *RedisEntry) Cmd(args []interface{}) *redis.Reply
func (*RedisEntry) String ¶
func (self *RedisEntry) String() string
type RedisPool ¶
type RedisPool struct {
// contains filtered or unexported fields
}
func NewRedisPool ¶
func (*RedisPool) CmdSingleRetry ¶
只对一个redis执行命令
func (*RedisPool) EvalSingle ¶
lua 脚本执行的快捷命令
func (*RedisPool) LoadLuaFile ¶
Click to show internal directories.
Click to hide internal directories.