Versions in this module Expand all Collapse all v2 v2.0.0 Jul 11, 2021 Changes in this version + type OptsFunc func(*redis.Options) + func WithPoolSize(size int) OptsFunc + func WithPoolTimeout(timeout time.Duration) OptsFunc + func WithReadTimeout(timeout time.Duration) OptsFunc + func WithWriteTimeout(timeout time.Duration) OptsFunc + type Redis struct + func New(uri string, opts ...OptsFunc) (*Redis, error) + func (c Redis) Add(ctx context.Context, key string, value interface{}, expire time.Duration) error + func (c Redis) Dec(ctx context.Context, key string, value uint64) (int64, error) + func (c Redis) Delete(ctx context.Context, key string) error + func (c Redis) Get(ctx context.Context, key string) cache.Item + func (c Redis) GetMulti(ctx context.Context, keys ...string) ([]cache.Item, error) + func (c Redis) Inc(ctx context.Context, key string, value uint64) (int64, error) + func (c Redis) Replace(ctx context.Context, key string, value interface{}, expire time.Duration) error + func (c Redis) Set(ctx context.Context, key string, value interface{}, expire time.Duration) error