Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithRouteByLatency ¶
func WithRouteByLatency(enable bool) func(cache *RedisQueue)
func WithRouteRandomly ¶
func WithRouteRandomly(enable bool) func(cache *RedisQueue)
Types ¶
type RedisQueue ¶
type RedisQueue struct {
// contains filtered or unexported fields
}
func NewRedisQueue ¶
func NewRedisQueue(Addrs []string, opts ...redisQueueOpts) (*RedisQueue, error)
func (*RedisQueue) Close ¶
func (r *RedisQueue) Close()
type RedisUniversalClient ¶
type RedisUniversalClient interface { Ping(ctx context.Context) *redis.StatusCmd LPush(ctx context.Context, key string, values ...interface{}) *redis.IntCmd RPop(ctx context.Context, key string) *redis.StringCmd BLMPop(ctx context.Context, timeout time.Duration, direction string, count int64, keys ...string) *redis.KeyValuesCmd Close() error }
Click to show internal directories.
Click to hide internal directories.