Documentation ¶
Index ¶
- Variables
- func AnyEmptyErr(errs ...error) bool
- type Client
- func (r *Client) AllExist(ctx context.Context, keys ...string) (allExist bool, notExistsIndex int, err error)
- func (r *Client) HSetTTL(ctx context.Context, key string, values map[string]interface{}, ...) error
- func (r *Client) OptimisticLockTx(ctx context.Context, maxRetries int, txFn RedisTxFn, keys ...string) error
- func (r *Client) SAddTTL(ctx context.Context, key string, TTL time.Duration, members ...interface{}) error
- type Cmdable
- type RedisTxFn
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrWatchMaxRetries = errors.New("Maximum number of watch retries reached")
)
Functions ¶
func AnyEmptyErr ¶
Types ¶
type Client ¶
type Client struct {
*redis.Client
}
func (*Client) OptimisticLockTx ¶
type Cmdable ¶
type Cmdable interface { redis.Cmdable OptimisticLockTx( ctx context.Context, maxRetries int, txFn RedisTxFn, keys ...string, ) error HSetTTL( ctx context.Context, key string, values map[string]interface{}, TTL time.Duration, ) error SAddTTL( ctx context.Context, key string, TTL time.Duration, members ...interface{}, ) error AllExist( ctx context.Context, keys ...string, ) (allExist bool, notExistsIndex int, err error) }
Click to show internal directories.
Click to hide internal directories.