Documentation ¶
Index ¶
- func Init(app *iris.Application)
- func RedisBLPOP(ctx context.Context, timeout time.Duration, keys ...string) (value []string, err error)
- func RedisBatchDel(ctx context.Context, key ...string) error
- func RedisDel(ctx context.Context, key string) error
- func RedisExpire(ctx context.Context, key string, expire int) error
- func RedisGet(ctx context.Context, key string) (string, error)
- func RedisGetFloat64(ctx context.Context, key string) (float64, error)
- func RedisGetInt(ctx context.Context, key string) (int, error)
- func RedisGetInt64(ctx context.Context, key string) (int64, error)
- func RedisGetJson(ctx context.Context, key string) ([]byte, error)
- func RedisGetResult(ctx context.Context, key string) (interface{}, error)
- func RedisGetUint64(ctx context.Context, key string) (uint64, error)
- func RedisHDel(ctx context.Context, key, field string) error
- func RedisHGet(ctx context.Context, key, field string) (string, error)
- func RedisHSet(ctx context.Context, key, field, value string) error
- func RedisInit(addrs []string, ctx context.Context)
- func RedisKeyExists(ctx context.Context, key string) (bool, error)
- func RedisKeys(ctx context.Context, pattern string) (keys []string, err error)
- func RedisLLEN(ctx context.Context, key string) (value int64, err error)
- func RedisLRange(ctx context.Context, key string, start, stop int) (values []string, err error)
- func RedisListAllValuesWithPrefix(ctx context.Context, prefix string) (map[string]string, error)
- func RedisMset(ctx context.Context, pairs ...interface{}) error
- func RedisPSubscribe(ctx context.Context, channelName string) *redis.PubSub
- func RedisPTTL(ctx context.Context, key string) (int, error)
- func RedisPublish(ctx context.Context, channelName string, message interface{}) int64
- func RedisRPUSH(ctx context.Context, key string, member string) (err error)
- func RedisSet(ctx context.Context, key string, value interface{}, expire int) error
- func RedisSetJson(ctx context.Context, key string, value interface{}, expire int) error
- func RedisTTL(ctx context.Context, key string) (int, error)
- func RedisZAdd(ctx context.Context, key, member, score string) error
- func RedisZRange(ctx context.Context, key string, start, stop int) (values []string, err error)
- func RedisZRangeWithScores(ctx context.Context, key string, start, stop int) (values []redis.Z, err error)
- func RedisZRank(ctx context.Context, key, member string) (int, error)
- func RedisZRem(ctx context.Context, key, member string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedisBLPOP ¶
func RedisLRange ¶
func RedisListAllValuesWithPrefix ¶
RedisListAllValuesWithPrefix will take in a key prefix and return the value of all the keys that contain that prefix
func RedisPSubscribe ¶
RedisPSubscribe 匹配获取指定通道中的订阅消息
func RedisPublish ¶
RedisPublish 消息发布
func RedisSetJson ¶
func RedisZRange ¶
func RedisZRangeWithScores ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.