Documentation ¶
Index ¶
- Constants
- func New(ctx context.Context, opts SetupOptions) (instance.Redis, error)
- type RedisInst
- func (r *RedisInst) Del(ctx context.Context, key string) (int, error)
- func (r *RedisInst) Exists(ctx context.Context, key string) (bool, error)
- func (r *RedisInst) Expire(ctx context.Context, key string, ttl time.Duration) error
- func (r *RedisInst) Get(ctx context.Context, key string) (string, error)
- func (r *RedisInst) Ping(ctx context.Context) error
- func (r *RedisInst) Pipeline(ctx context.Context) redis.Pipeliner
- func (r *RedisInst) SAdd(ctx context.Context, key string, value string) error
- func (r *RedisInst) Set(ctx context.Context, key string, value string) error
- func (r *RedisInst) SetEX(ctx context.Context, key string, value interface{}, ttl time.Duration) error
- func (r *RedisInst) SetNX(ctx context.Context, key string, value interface{}, ttl time.Duration) (bool, error)
- func (r *RedisInst) Subscribe(ctx context.Context, ch chan string, subscribeTo ...string)
- func (r *RedisInst) TTL(ctx context.Context, key string) (time.Duration, error)
- type SetupOptions
Constants ¶
View Source
const RedisPrefix = "discord-bot:"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RedisInst ¶
type RedisInst struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.