Documentation
¶
Index ¶
- func New(ctx context.Context, opts SetupOptions) (instance.Redis, error)
- type RedisInst
- func (r *RedisInst) Del(ctx context.Context, key string) error
- func (r *RedisInst) Expire(ctx context.Context, key string, ttl time.Duration) error
- func (r *RedisInst) Get(ctx context.Context, key string) (interface{}, error)
- func (r *RedisInst) Ping(ctx context.Context) error
- func (r *RedisInst) Publish(ctx context.Context, channel string, content string) error
- func (r *RedisInst) RawClient() *redis.Client
- func (r *RedisInst) Set(ctx context.Context, key string, value string) error
- func (r *RedisInst) SetEX(ctx context.Context, key string, value string, ttl time.Duration) error
- func (r *RedisInst) SetNX(ctx context.Context, key string, value string, ttl time.Duration) (bool, error)
- func (r *RedisInst) Subscribe(ctx context.Context, ch chan string, subscribeTo ...string)
- type SetupOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.