Documentation ¶
Index ¶
- type Backend
- type Broker
- func (r *Broker) Activate()
- func (r Broker) Clone() brokers.BrokerInterface
- func (r *Broker) GetPoolSize() int
- func (r *Broker) LSend(queueName string, msg message.Message) error
- func (r *Broker) Next(queueName string) (message.Message, error)
- func (r *Broker) Send(queueName string, msg message.Message) error
- func (r *Broker) SetPoolSize(n int)
- type Client
- func (c *Client) BLPop(key string, timeout time.Duration) *redis.StringSliceCmd
- func (c *Client) Close()
- func (c *Client) Do(args ...interface{}) *redis.Cmd
- func (c *Client) Exists(key string) (bool, error)
- func (c *Client) Flush() error
- func (c *Client) Get(key string) *redis.StringCmd
- func (c *Client) LPush(key string, value interface{}) error
- func (c *Client) Ping() error
- func (c *Client) RPush(key string, value interface{}) error
- func (c *Client) Set(key string, value interface{}, exTime time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewRedisBackend ¶
NewRedisBackend
- poolSize: Maximum number of idle connections in the pool. If poolSize<=0 use default value. default value is min(10, numWorkers) at SERVER default value is 10 at CLIENT
func (Backend) Clone ¶
func (r Backend) Clone() backends.BackendInterface
func (*Backend) GetPoolSize ¶
func (*Backend) SetPoolSize ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
func NewRedisBroker ¶
NewRedisBroker
- poolSize: Maximum number of idle connections in client pool. If clientPoolSize<=0, clientPoolSize=10
func (Broker) Clone ¶
func (r Broker) Clone() brokers.BrokerInterface
func (*Broker) GetPoolSize ¶
func (*Broker) SetPoolSize ¶
Click to show internal directories.
Click to hide internal directories.