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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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