redisx

package
v0.0.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisX

type RedisX struct {
	redis.Cmdable
}

func NewRedisX

func NewRedisX(conf *config.RedisConf) *RedisX

func (*RedisX) ExistEX added in v0.0.20

func (rx *RedisX) ExistEX(ctx context.Context, key string, ttl time.Duration) error

func (*RedisX) HGetXEX added in v0.0.20

func (rx *RedisX) HGetXEX(ctx context.Context, key, field string, ttl time.Duration) (string, error)

func (*RedisX) HIncrByEX added in v0.0.6

func (rx *RedisX) HIncrByEX(ctx context.Context, key, field string, incr int64, ttl time.Duration) error

func (*RedisX) HIncrByXEX added in v0.0.6

func (rx *RedisX) HIncrByXEX(ctx context.Context, key, field string, incr int64, ttl time.Duration) error

func (*RedisX) HMGetXEX added in v0.0.18

func (rx *RedisX) HMGetXEX(ctx context.Context, key string, ttl time.Duration, field ...string) ([]interface{}, error)

func (*RedisX) HMSetEX added in v0.0.10

func (rx *RedisX) HMSetEX(ctx context.Context, key string, fieldMap map[string]interface{}, ttl time.Duration) error

func (*RedisX) HMSetXEX added in v0.0.18

func (rx *RedisX) HMSetXEX(ctx context.Context, key string, fieldMap map[string]interface{}, ttl time.Duration) error

func (*RedisX) IncrByXEX added in v0.0.9

func (rx *RedisX) IncrByXEX(ctx context.Context, key string, incr int64, ttl time.Duration) error

func (*RedisX) ZAddEX

func (rx *RedisX) ZAddEX(ctx context.Context, key string, zs []*redis.Z, ttl time.Duration) error

func (*RedisX) ZAddXEX

func (rx *RedisX) ZAddXEX(ctx context.Context, key string, zs []*redis.Z, ttl time.Duration) error

func (*RedisX) ZRevRangeByMember added in v0.0.21

func (rx *RedisX) ZRevRangeByMember(ctx context.Context, key string, member interface{}, offset int64) ([]int64, error)

func (*RedisX) ZRevRangeByMemberWithScores added in v0.0.22

func (rx *RedisX) ZRevRangeByMemberWithScores(ctx context.Context, key string, member interface{}, offset int64) ([]*redis.Z, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL