Documentation ¶
Index ¶
- func Get(key string) redis.UniversalClient
- func InitRedises()
- func ListPop(rds redis.UniversalClient, keys []string, timeout, goPoolSize int, ...)
- func ListPush(ctx context.Context, rds redis.UniversalClient, key string, ...) error
- func MqPSubscribe(c context.Context, rds redis.UniversalClient, pChannel string, ...)
- func MqPublish(ctx context.Context, rds redis.UniversalClient, channel string, ...) error
- func RdsAllowActionByMTs(ctx context.Context, rds redis.UniversalClient, actionKey string, ...) (int64, bool)
- func RdsAllowActionWithCD(ctx context.Context, rds redis.UniversalClient, actionKey string, ...) (int, bool)
- func RdsLockResWithCD(ctx context.Context, rds redis.UniversalClient, resKey, resValue string, ...) bool
- func ZBatchAdd(ctx context.Context, rds redis.UniversalClient, keyName string, ...) error
- func ZDescartes(ctx context.Context, rds redis.UniversalClient, dimValues [][]string, ...) error
- type ZDescartesFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRedises ¶
func InitRedises()
func ListPop ¶ added in v1.0.17
func ListPop(rds redis.UniversalClient, keys []string, timeout, goPoolSize int, handler func(key, data string))
list结构主要用来做异步操作,相当于一对一发送接收
func MqPSubscribe ¶ added in v1.0.17
func RdsAllowActionByMTs ¶ added in v1.0.17
func RdsAllowActionWithCD ¶ added in v1.0.17
func RdsLockResWithCD ¶ added in v1.0.17
func RdsLockResWithCD(ctx context.Context, rds redis.UniversalClient, resKey, resValue string, cdSeconds int) bool
RdsLockResWithCD(ctx context.Context, rds redis.UniversalClient, resKeyName, config.ServerId, runtimeSeconds*2)
func ZDescartes ¶ added in v1.0.16
Types ¶
Click to show internal directories.
Click to hide internal directories.