redis

package
v0.0.0-...-c182ff6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Ping() *redis.StatusCmd

	Close() error

	Pipelined(fn func(redis.Pipeliner) error) ([]redis.Cmder, error)

	ZScore(key, field string) *redis.FloatCmd

	ZRem(key string, members ...interface{}) *redis.IntCmd

	ZRange(key string, start, stop int64) *redis.StringSliceCmd

	ZCard(key string) *redis.IntCmd

	Del(keys ...string) *redis.IntCmd

	ZRemRangeByRank(key string, start, stop int64) *redis.IntCmd
}

type Redis

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

func (*Redis) HGet

func (r *Redis) HGet(key, field string) (string, float64, error)

func (*Redis) HRem

func (r *Redis) HRem(key string, field ...string) error

func (*Redis) HScan

func (r *Redis) HScan(key string, do func(field, token string, ttl float64)) error

func (*Redis) HSet

func (r *Redis) HSet(key, field string, value interface{}, maxLen, expire int64) error

func (*Redis) Initializer

func (r *Redis) Initializer(opts string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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