Documentation ¶
Index ¶
- func GetRedis() redis.Cmdable
- func InitLock() error
- func InitRedis(cfg *Config)
- func Obtain(ctx context.Context, key string, ttl time.Duration, opt *redislock.Options) (*redislock.Lock, error)
- func Publish(ctx context.Context, rds redis.Cmdable, channel string, message interface{}) error
- func Subscribe(ctx context.Context, rds redis.Cmdable, ...)
- type Cmdable
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.