rediswrap

package
v0.0.0-...-ab5233d Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisWrap

type RedisWrap struct {
	*redis.Client
}

RedisWrap .

func New

func New(client *redis.Client) *RedisWrap

New .

func NewWithURL

func NewWithURL(url string) (*RedisWrap, error)

NewWithURL .

func (*RedisWrap) Expire

func (w *RedisWrap) Expire(key string, expiration time.Duration) (bool, error)

Expire implement castcenter.Redis

func (*RedisWrap) Get

func (w *RedisWrap) Get(key string) (string, error)

Get implement castcenter.Redis

func (*RedisWrap) SetNX

func (w *RedisWrap) SetNX(key string, value interface{}, expiration time.Duration) (bool, error)

SetNX implement castcenter.Redis

func (*RedisWrap) ZAdd

func (w *RedisWrap) ZAdd(key, member string, score float64) (int64, error)

ZAdd implement castcenter.Redis

func (*RedisWrap) ZRangeByScore

func (w *RedisWrap) ZRangeByScore(key string, min, max float64) ([]string, error)

ZRangeByScore implement castcenter.Redis

Jump to

Keyboard shortcuts

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