redis_wrapper

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeoItem

type GeoItem struct {
	Lon, Lat, Distance float64
	Name, Hash         string
}

GeoItem for Redis Geo functions

type RedisScriptParam

type RedisScriptParam struct {
	Keys []string
	Args []interface{}
}

type RedisWrapper

type RedisWrapper interface {
	io.Closer

	// The returned `redis.Conn` should be closed by manual
	Raw() redis.Conn
	// contains filtered or unexported methods
}

func Open

func Open(dsn string) (RedisWrapper, error)

type SortSetItem added in v1.3.0

type SortSetItem struct {
	Member string
	// used by member score,
	// @note - the value must be int64 or float64 when used to zadd
	// @note - the value will be string when returned
	Score interface{}
}

SortSet item type

type SortSetRangeOption added in v1.3.0

type SortSetRangeOption func(opt *zrangeOption)

func WithZRange added in v1.3.0

func WithZRange(limit, offset int) SortSetRangeOption

func WithZScores added in v1.3.0

func WithZScores() SortSetRangeOption

Jump to

Keyboard shortcuts

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