redisx

package
v3.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterClient

type ClusterClient interface {
	ForEachMaster(fn func(client *redis.Client) error) error
}

ClusterClient represents a redis ClusterClient

type ClusterScanIterator

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

ClusterScanIterator represents redis cluster scan iterator

func (*ClusterScanIterator) Err

func (cs *ClusterScanIterator) Err() error

Err returns an error for iterator

func (*ClusterScanIterator) Next

func (cs *ClusterScanIterator) Next() bool

Next returns true if there is at least one more value in iterator

func (*ClusterScanIterator) Val

func (cs *ClusterScanIterator) Val() string

Val returns current value pointed by the iterator

type ScanCmd

type ScanCmd interface {
	Iterator() ScanIterator
}

ScanCmd represents redis ScanCmd

type ScanIterator

type ScanIterator interface {
	Val() string
	Next() bool
	Err() error
}

ScanIterator represents a generic redis scan iterator that works on both redis Client and ClusterClient

func NewScanIterator

func NewScanIterator(c interface{}, cursor uint64, match string, count int64) (ScanIterator, error)

NewScanIterator returns a scan operator regarding redis client type

Jump to

Keyboard shortcuts

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