Documentation
¶
Index ¶
- Constants
- func New(ctx context.Context, opts SetupOptions) (instance.Redis, error)
- type RedisInst
- func (r *RedisInst) Get(ctx context.Context, key string) (interface{}, error)
- func (r *RedisInst) Ping(ctx context.Context) error
- func (r *RedisInst) Pipeline(ctx context.Context) redis.Pipeliner
- 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)
- type SetupOptions
Constants ¶
View Source
const RedisPrefix = "vods-edge:"
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.