Documentation ¶
Index ¶
- func New(rdc *redis.Client) cache.Cache
- type Redis
- func (e *Redis) ClearAll(ctx context.Context) error
- func (e *Redis) Decr(ctx context.Context, key string) error
- func (e *Redis) Delete(ctx context.Context, key string) error
- func (e *Redis) Expire(ctx context.Context, key string) (bool, error)
- func (e *Redis) Fetch(ctx context.Context, key []string) ([]any, error)
- func (e *Redis) Get(ctx context.Context, key string) (any, error)
- func (e *Redis) Incr(ctx context.Context, key string) error
- func (e *Redis) IsExist(ctx context.Context, key string) (bool, error)
- func (e *Redis) Put(ctx context.Context, key string, value any, timeout ...time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.