Documentation ¶
Index ¶
- type RedisClient
- func (r *RedisClient) Bool(reply interface{}, err error) (bool, error)
- func (r *RedisClient) Bytes(reply interface{}, err error) ([]byte, error)
- func (r *RedisClient) Execute(cmd string, args ...interface{}) (interface{}, error)
- func (r *RedisClient) Float64(reply interface{}, err error) (float64, error)
- func (r *RedisClient) Int(reply interface{}, err error) (int, error)
- func (r *RedisClient) Int64(reply interface{}, err error) (int64, error)
- func (r *RedisClient) ReleaseOneRedisClient()
- func (r *RedisClient) String(reply interface{}, err error) (string, error)
- func (r *RedisClient) Strings(reply interface{}, err error) ([]string, error)
- func (r *RedisClient) Uint64(reply interface{}, err error) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
定义一个redis客户端结构体
func (*RedisClient) Bool ¶
func (r *RedisClient) Bool(reply interface{}, err error) (bool, error)
bool 类型转换
func (*RedisClient) Bytes ¶
func (r *RedisClient) Bytes(reply interface{}, err error) ([]byte, error)
Bytes 类型转换
func (*RedisClient) Execute ¶
func (r *RedisClient) Execute(cmd string, args ...interface{}) (interface{}, error)
为redis-go 客户端封装统一操作函数入口
func (*RedisClient) Float64 ¶
func (r *RedisClient) Float64(reply interface{}, err error) (float64, error)
Float64 类型转换
func (*RedisClient) Int ¶
func (r *RedisClient) Int(reply interface{}, err error) (int, error)
int 类型转换
func (*RedisClient) Int64 ¶
func (r *RedisClient) Int64(reply interface{}, err error) (int64, error)
int64 类型转换
func (*RedisClient) String ¶
func (r *RedisClient) String(reply interface{}, err error) (string, error)
string 类型转换
Click to show internal directories.
Click to hide internal directories.