redispk

package
v0.0.0-...-765649b Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisDB

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

func NewRedis

func NewRedis(db *rdb.Redis) *RedisDB

func (*RedisDB) Decrement

func (r *RedisDB) Decrement(ctx context.Context, key string) error

func (*RedisDB) Del

func (r *RedisDB) Del(ctx context.Context, key string) error

func (*RedisDB) Get

func (r *RedisDB) Get(ctx context.Context, key string) (string, error)

func (*RedisDB) Set

func (r *RedisDB) Set(ctx context.Context, key string, value string) error

func (*RedisDB) SetInt

func (r *RedisDB) SetInt(ctx context.Context, key string, value int) error

func (*RedisDB) ZDel

func (r *RedisDB) ZDel(ctx context.Context, setName string) ([]redis.Z, error)

func (*RedisDB) ZGetRange

func (r *RedisDB) ZGetRange(ctx context.Context, setName string, start float64, end float64) ([]redis.Z, error)

func (*RedisDB) ZRem

func (r *RedisDB) ZRem(ctx context.Context, setName string, key string) (int64, error)

func (*RedisDB) ZSet

func (r *RedisDB) ZSet(ctx context.Context, setName string, publishTime float64, id string) (int64, error)

Jump to

Keyboard shortcuts

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