redisext

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetConfiger

func SetConfiger(ctx context.Context, configerType cache.ConfigerType) error

func WatchUpdate

func WatchUpdate(ctx context.Context)

Types

type RedisExt

type RedisExt struct {
	// contains filtered or unexported fields
}

func NewRedisExt

func NewRedisExt(namespace, prefix string) *RedisExt

func (*RedisExt) Del

func (m *RedisExt) Del(ctx context.Context, key string) (n int64, err error)

func (*RedisExt) Exists

func (m *RedisExt) Exists(ctx context.Context, key string) (n int64, err error)

func (*RedisExt) Expire

func (m *RedisExt) Expire(ctx context.Context, key string, expiration time.Duration) (b bool, err error)

func (*RedisExt) Get

func (m *RedisExt) Get(ctx context.Context, key string) (s string, err error)

func (*RedisExt) Set

func (m *RedisExt) Set(ctx context.Context, key string, val interface{}, exp time.Duration) (s string, err error)

func (*RedisExt) ZAdd

func (m *RedisExt) ZAdd(ctx context.Context, key string, members []Z) (n int64, err error)

func (*RedisExt) ZAddCh

func (m *RedisExt) ZAddCh(ctx context.Context, key string, members []Z) (n int64, err error)

func (*RedisExt) ZAddNX

func (m *RedisExt) ZAddNX(ctx context.Context, key string, members []Z) (n int64, err error)

func (*RedisExt) ZAddNXCh

func (m *RedisExt) ZAddNXCh(ctx context.Context, key string, members []Z) (n int64, err error)

func (*RedisExt) ZAddXX

func (m *RedisExt) ZAddXX(ctx context.Context, key string, members []Z) (n int64, err error)

func (*RedisExt) ZAddXXCh

func (m *RedisExt) ZAddXXCh(ctx context.Context, key string, members []Z) (n int64, err error)

func (*RedisExt) ZCard

func (m *RedisExt) ZCard(ctx context.Context, key string) (n int64, err error)

func (*RedisExt) ZCount

func (m *RedisExt) ZCount(ctx context.Context, key, min, max string) (n int64, err error)

func (*RedisExt) ZIncr

func (m *RedisExt) ZIncr(ctx context.Context, key string, member Z) (f float64, err error)

func (*RedisExt) ZIncrBy

func (m *RedisExt) ZIncrBy(ctx context.Context, key string, increment float64, member string) (f float64, err error)

func (*RedisExt) ZIncrNX

func (m *RedisExt) ZIncrNX(ctx context.Context, key string, member Z) (f float64, err error)

func (*RedisExt) ZIncrXX

func (m *RedisExt) ZIncrXX(ctx context.Context, key string, member Z) (f float64, err error)

func (*RedisExt) ZRange

func (m *RedisExt) ZRange(ctx context.Context, key string, start, stop int64) (ss []string, err error)

func (*RedisExt) ZRangeWithScores

func (m *RedisExt) ZRangeWithScores(ctx context.Context, key string, start, stop int64) (zs []Z, err error)

func (*RedisExt) ZRank

func (m *RedisExt) ZRank(ctx context.Context, key string, member string) (n int64, err error)

func (*RedisExt) ZRem

func (m *RedisExt) ZRem(ctx context.Context, key string, members []interface{}) (n int64, err error)

func (*RedisExt) ZRevRange

func (m *RedisExt) ZRevRange(ctx context.Context, key string, start, stop int64) (ss []string, err error)

func (*RedisExt) ZRevRangeWithScores

func (m *RedisExt) ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) (zs []Z, err error)

func (*RedisExt) ZRevRank

func (m *RedisExt) ZRevRank(ctx context.Context, key string, member string) (n int64, err error)

func (*RedisExt) ZScore

func (m *RedisExt) ZScore(ctx context.Context, key string, member string) (f float64, err error)

type Z

type Z struct {
	Score  float64
	Member interface{}
}

Jump to

Keyboard shortcuts

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