Documentation ¶
Overview ¶
基于redigo的封装
Index ¶
- Variables
- type RedigoPack
- type Reply
- func (r *Reply) Bool() (bool, error)
- func (r *Reply) ByteSlices() ([][]byte, error)
- func (r *Reply) Bytes() ([]byte, error)
- func (r *Reply) Error() error
- func (r *Reply) Float64s() ([]float64, error)
- func (r *Reply) Int() (int, error)
- func (r *Reply) Int64() (int64, error)
- func (r *Reply) Int64Map() (map[string]int64, error)
- func (r *Reply) Int64s() ([]int64, error)
- func (r *Reply) IntMap() (map[string]int, error)
- func (r *Reply) Ints() ([]int, error)
- func (r *Reply) Positions() ([]*[2]float64, error)
- func (r *Reply) Result() (interface{}, error)
- func (r *Reply) ScanStruct(obj interface{}) error
- func (r *Reply) String() (string, error)
- func (r *Reply) StringMap() (map[string]string, error)
- func (r *Reply) Strings() ([]string, error)
- func (r *Reply) Uint64() (uint64, error)
- func (r *Reply) Values() ([]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorConfig error = fmt.Errorf("请先初始化redis配置")
)
View Source
var NilError = redis.ErrNil
View Source
var RedigoConn = new(RedigoPack)
Functions ¶
This section is empty.
Types ¶
type RedigoPack ¶
type RedigoPack struct { String stringRds List listRds Hash hashRds Key keyRds Set setRds ZSet zSetRds Bit bitRds Db dbRds }
func NewConnectionByPool ¶
func NewConnectionByPool(p *redis.Pool) *RedigoPack
func (*RedigoPack) GetConn ¶ added in v1.5.2
func (p *RedigoPack) GetConn() redis.Conn
Note! release the conn
func (*RedigoPack) GetPubSubConn ¶ added in v1.5.2
func (p *RedigoPack) GetPubSubConn() *redis.PubSubConn
Note! release the conn
type Reply ¶
type Reply struct {
// contains filtered or unexported fields
}
func (*Reply) ByteSlices ¶
Click to show internal directories.
Click to hide internal directories.