Documentation
¶
Index ¶
- type Client
- func (c *Client) BLPop(timeout time.Duration, keys ...string) ([]string, error)
- func (c *Client) BRPop(timeout time.Duration, keys ...string) ([]string, error)
- func (c *Client) Close() error
- func (c *Client) Decr(key string) (int64, error)
- func (c *Client) Del(keys ...string) (int64, error)
- func (c *Client) Do(cmd string, args ...interface{}) (interface{}, error)
- func (c *Client) Exists(keys ...string) (int64, error)
- func (c *Client) Expire(key string, expiration time.Duration) (bool, error)
- func (c *Client) Get(key string) (string, error)
- func (c *Client) HGet(key, field string) (string, error)
- func (c *Client) HGetAll(key string) (map[string]string, error)
- func (c *Client) HSet(key, field string, value interface{}) error
- func (c *Client) HandleRequests(name string, handler func([]byte) error) *RequestHandler
- func (c *Client) Incr(key string) (int64, error)
- func (c *Client) LPop(key string) (string, error)
- func (c *Client) LPush(key string, values ...interface{}) (int64, error)
- func (c *Client) NewTxGroup(name string) *TxGroup
- func (c *Client) Publish(channel string, message interface{}) (int64, error)
- func (c *Client) RPop(key string) (string, error)
- func (c *Client) RPush(key string, values ...interface{}) (int64, error)
- func (c *Client) Set(key string, value interface{}, expiration time.Duration) error
- func (c *Client) Subscribe(name string) *SubscriberGroup
- type Config
- type RequestHandler
- type SubscriberGroup
- type TxGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BLPop ¶ added in v0.2.0
BLPop blocks until it can remove and return the first element of a list
func (*Client) BRPop ¶ added in v0.2.0
BRPop blocks until it can remove and return the last element of a list
func (*Client) HandleRequests ¶
func (c *Client) HandleRequests(name string, handler func([]byte) error) *RequestHandler
func (*Client) NewTxGroup ¶
func (*Client) Subscribe ¶
func (c *Client) Subscribe(name string) *SubscriberGroup
type RequestHandler ¶
type RequestHandler struct {
// contains filtered or unexported fields
}
type SubscriberGroup ¶
type SubscriberGroup struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.