Documentation ¶
Index ¶
- Variables
- type ConnWrapper
- func (c *ConnWrapper) Close() error
- func (c *ConnWrapper) Del(params ...interface{}) (int64, error)
- func (c *ConnWrapper) Do(cmd string, params ...interface{}) (interface{}, error)
- func (c *ConnWrapper) Exists(params ...interface{}) (bool, error)
- func (c *ConnWrapper) Flush() error
- func (c *ConnWrapper) Get(key string) (interface{}, error)
- func (c *ConnWrapper) GetBool(key string) (bool, error)
- func (c *ConnWrapper) GetFloat64(key string) (float64, error)
- func (c *ConnWrapper) GetInt64(key string) (int64, error)
- func (c *ConnWrapper) GetString(key string) (string, error)
- func (c *ConnWrapper) GetUint64(key string) (uint64, error)
- func (c *ConnWrapper) HincrByFloat64(hash, key string, v float64) (float64, error)
- func (c *ConnWrapper) Incr(key string) (int64, error)
- func (c *ConnWrapper) IncrBy(key string, v int64) (int64, error)
- func (c *ConnWrapper) IncrByFloat64(key string, v float64) (float64, error)
- func (c *ConnWrapper) MGet(params ...interface{}) error
- func (c *ConnWrapper) MGetCleanSlice(keys ...interface{}) ([]interface{}, error)
- func (c *ConnWrapper) MGetSlice(keys ...interface{}) ([]interface{}, error)
- func (c *ConnWrapper) MSet(params ...interface{}) (interface{}, error)
- func (c *ConnWrapper) Receive() (interface{}, error)
- func (c *ConnWrapper) Send(cmd string, params ...interface{}) error
- func (c *ConnWrapper) Set(key string, v interface{}) error
- func (c *ConnWrapper) SetEx(key string, expire uint64, v interface{}) error
- type PoolWrapper
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidConnectionURL = errors.New("Invalid connection URL")
)
Errors set
Functions ¶
This section is empty.
Types ¶
type ConnWrapper ¶
func (*ConnWrapper) Close ¶
func (c *ConnWrapper) Close() error
func (*ConnWrapper) Del ¶
func (c *ConnWrapper) Del(params ...interface{}) (int64, error)
func (*ConnWrapper) Do ¶
func (c *ConnWrapper) Do(cmd string, params ...interface{}) (interface{}, error)
func (*ConnWrapper) Exists ¶
func (c *ConnWrapper) Exists(params ...interface{}) (bool, error)
func (*ConnWrapper) Flush ¶
func (c *ConnWrapper) Flush() error
func (*ConnWrapper) Get ¶
func (c *ConnWrapper) Get(key string) (interface{}, error)
func (*ConnWrapper) GetFloat64 ¶
func (c *ConnWrapper) GetFloat64(key string) (float64, error)
func (*ConnWrapper) HincrByFloat64 ¶
func (c *ConnWrapper) HincrByFloat64(hash, key string, v float64) (float64, error)
func (*ConnWrapper) IncrByFloat64 ¶
func (c *ConnWrapper) IncrByFloat64(key string, v float64) (float64, error)
func (*ConnWrapper) MGet ¶
func (c *ConnWrapper) MGet(params ...interface{}) error
func (*ConnWrapper) MGetCleanSlice ¶
func (c *ConnWrapper) MGetCleanSlice(keys ...interface{}) ([]interface{}, error)
func (*ConnWrapper) MGetSlice ¶
func (c *ConnWrapper) MGetSlice(keys ...interface{}) ([]interface{}, error)
func (*ConnWrapper) MSet ¶
func (c *ConnWrapper) MSet(params ...interface{}) (interface{}, error)
func (*ConnWrapper) Receive ¶
func (c *ConnWrapper) Receive() (interface{}, error)
func (*ConnWrapper) Send ¶
func (c *ConnWrapper) Send(cmd string, params ...interface{}) error
func (*ConnWrapper) Set ¶
func (c *ConnWrapper) Set(key string, v interface{}) error
type PoolWrapper ¶
PoolWrapper object
func Register ¶
func Register(name, server, password string, dbNumber, maxIdle, maxActive int, wait bool, idleTimeout time.Duration) *PoolWrapper
Register redis connection
func (*PoolWrapper) ActiveCount ¶
func (p *PoolWrapper) ActiveCount() int
ActiveCount of connections
Click to show internal directories.
Click to hide internal directories.