redis

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 17 Imported by: 4

README

REDIS

One redis service for fns.

Note

redis version must be greater than 7.0.5

Install

go get github.com/aacfactory/fns-contrib/databases/redis

Usage

Config

Example

redis:
  initAddress:
    - "ip:port"
  username: ""
  password: ""

Note: see rueidis for more details

Deploy
app.Deply(redis.New())
Use service client
// set
_, setErr := redis.Do(ctx, redis.Set("some", time.Now().Format(time.RFC3339)).Ex(10*time.Second))
if setErr != nil {
    return
}

// get
r, getErr := redis.Do(ctx, redis.Get("some"))
if getErr != nil {
    // 
    return
}
if r.IsNil() {  
	// 
	return
}
s, sErr := r.AsString()
if sErr != nil {
	return
}

Cluster

Register cluster

imports (
	_ "github.com/aacfactory/fns-contrib/databases/redis/clusters"
)

Setup config

cluster:
  name: "redis"
  option:
    initAddress:
      - "ip:port"
    username: ""
    password: ""
    keepAlive:
      ttl: "60s"
      interval: "10s"
    barrier:
      ttl: "5s"

Note: it will use it owned barrier steadof common cluster barrier.

Documentation

Index

Constants

View Source
const (
	ErrNil         = "REDIS: NIL"
	ErrMoved       = "REDIS: MOVED"
	ErrAsk         = "REDIS: ASK"
	ErrTryAgain    = "REDIS: TRY_AGAIN"
	ErrClusterDown = "REDIS: CLUSTER_DOWN"
	ErrNoScript    = "REDIS: NO_SCRIPT"
)

Variables

This section is empty.

Functions

func Export added in v1.2.1

func Export(ctx context.Context) (client rueidis.Client, err error)

func New added in v1.2.1

func New(options ...Option) services.Service

func Use added in v1.2.1

func Use(ctx context.Context, endpointName []byte) context.Context

Types

type AppendBuilder added in v1.2.1

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

func Append added in v1.2.1

func Append(key string, value string) AppendBuilder

func (AppendBuilder) Build added in v1.2.1

func (builder AppendBuilder) Build() (cmd Command)

type BLMOVEBuilder added in v1.2.1

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

func BLMove added in v1.2.1

func BLMove(src string, dst string) BLMOVEBuilder

func (BLMOVEBuilder) Build added in v1.2.1

func (builder BLMOVEBuilder) Build() (cmd Command)

func (BLMOVEBuilder) Left added in v1.2.1

func (builder BLMOVEBuilder) Left() BLMOVEBuilder

func (BLMOVEBuilder) Right added in v1.2.1

func (builder BLMOVEBuilder) Right() BLMOVEBuilder

func (BLMOVEBuilder) Timeout added in v1.2.1

func (builder BLMOVEBuilder) Timeout(timeout float64) BLMOVEBuilder

type BLMPOPBuilder added in v1.2.1

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

func BLMPop added in v1.2.1

func BLMPop(timeout float64, numKeys int64) BLMPOPBuilder

func (BLMPOPBuilder) Build added in v1.2.1

func (builder BLMPOPBuilder) Build() (cmd Command)

func (BLMPOPBuilder) Count added in v1.2.1

func (builder BLMPOPBuilder) Count(count int64) BLMPOPBuilder

func (BLMPOPBuilder) Key added in v1.2.1

func (builder BLMPOPBuilder) Key(key ...string) BLMPOPBuilder

func (BLMPOPBuilder) Left added in v1.2.1

func (builder BLMPOPBuilder) Left() BLMPOPBuilder

func (BLMPOPBuilder) Right added in v1.2.1

func (builder BLMPOPBuilder) Right() BLMPOPBuilder

type BLPOPBuilder added in v1.2.1

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

func BLPop added in v1.2.1

func BLPop(key ...string) BLPOPBuilder

func (BLPOPBuilder) Build added in v1.2.1

func (builder BLPOPBuilder) Build() (cmd Command)

func (BLPOPBuilder) Timeout added in v1.2.1

func (builder BLPOPBuilder) Timeout(timeout float64) BLPOPBuilder

type BRPOPBuilder added in v1.2.1

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

func BRPop added in v1.2.1

func BRPop(key ...string) BRPOPBuilder

func (BRPOPBuilder) Build added in v1.2.1

func (builder BRPOPBuilder) Build() (cmd Command)

func (BRPOPBuilder) Timeout added in v1.2.1

func (builder BRPOPBuilder) Timeout(timeout float64) BRPOPBuilder

type BZMPOPBuilder added in v1.2.1

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

func BZMPop added in v1.2.1

func BZMPop(timeout float64, numKeys int64) BZMPOPBuilder

func (BZMPOPBuilder) Build added in v1.2.1

func (builder BZMPOPBuilder) Build() (cmd Command)

func (BZMPOPBuilder) Count added in v1.2.1

func (builder BZMPOPBuilder) Count(count int64) BZMPOPBuilder

func (BZMPOPBuilder) Key added in v1.2.1

func (builder BZMPOPBuilder) Key(keys ...string) BZMPOPBuilder

func (BZMPOPBuilder) Max added in v1.2.1

func (builder BZMPOPBuilder) Max() BZMPOPBuilder

func (BZMPOPBuilder) Min added in v1.2.1

func (builder BZMPOPBuilder) Min() BZMPOPBuilder

type BZPOPMAXBuilder added in v1.2.1

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

func BZPopMax added in v1.2.1

func BZPopMax(timeout float64, keys ...string) BZPOPMAXBuilder

func (BZPOPMAXBuilder) Build added in v1.2.1

func (builder BZPOPMAXBuilder) Build() (cmd Command)

type Cacheables added in v1.2.1

type Cacheables []Command

func (Cacheables) Build added in v1.2.1

func (cc Cacheables) Build(client rueidis.Client) (v []rueidis.CacheableTTL, ok bool)

func (Cacheables) Len added in v1.2.1

func (cc Cacheables) Len() int

func (Cacheables) Valid added in v1.2.1

func (cc Cacheables) Valid() bool

type Command added in v0.12.1

type Command struct {
	Name   string        `json:"name" avro:"name"`
	Params []string      `json:"params" avro:"params"`
	TTL    time.Duration `json:"ttl" avro:"ttl"`
}

type Commands added in v1.2.1

type Commands []Command

func (Commands) Build added in v1.2.1

func (cc Commands) Build(client rueidis.Client) (v []rueidis.Completed, ok bool)

func (Commands) Len added in v1.2.1

func (cc Commands) Len() int

type CopyBuilder added in v1.2.1

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

func Copy added in v1.2.1

func Copy(src string, dst string) CopyBuilder

func (CopyBuilder) Build added in v1.2.1

func (builder CopyBuilder) Build() (cmd Command)

type DecrBuilder added in v1.2.1

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

func Decr

func Decr(key string) DecrBuilder

func (DecrBuilder) Build added in v1.2.1

func (builder DecrBuilder) Build() (cmd Command)

type DecrByBuilder added in v1.2.1

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

func DecrBy added in v1.0.0

func DecrBy(key string, delta int64) DecrByBuilder

func (DecrByBuilder) Build added in v1.2.1

func (builder DecrByBuilder) Build() (cmd Command)

type DelBuilder added in v1.2.1

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

func Del added in v1.0.0

func Del(key string) DelBuilder

func (DelBuilder) Build added in v1.2.1

func (builder DelBuilder) Build() (cmd Command)

type Error added in v1.2.1

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

func IsRedisError added in v1.2.1

func IsRedisError(e error) (err *Error, ok bool)

func (Error) AsArray added in v1.2.1

func (m Error) AsArray() (v []Message, err error)

func (Error) AsBool added in v1.2.1

func (m Error) AsBool() (v bool, err error)

func (Error) AsBoolMap added in v1.2.1

func (m Error) AsBoolMap() (v map[string]bool, err error)

func (Error) AsBoolSlice added in v1.2.1

func (m Error) AsBoolSlice() (v []bool, err error)

func (Error) AsBytes added in v1.2.1

func (m Error) AsBytes() (v []byte, err error)

func (Error) AsBytesMap added in v1.2.1

func (m Error) AsBytesMap() (v map[string][]byte, err error)

func (Error) AsBytesSlice added in v1.2.1

func (m Error) AsBytesSlice() (v [][]byte, err error)

func (Error) AsFloat added in v1.2.1

func (m Error) AsFloat() (v float64, err error)

func (Error) AsFloatMap added in v1.2.1

func (m Error) AsFloatMap() (v map[string]float64, err error)

func (Error) AsFloatSlice added in v1.2.1

func (m Error) AsFloatSlice() (v []float64, err error)

func (Error) AsFtAggregate added in v1.2.1

func (m Error) AsFtAggregate() (total int64, docs []map[string]string, err error)

func (Error) AsFtAggregateCursor added in v1.2.1

func (m Error) AsFtAggregateCursor() (cursor, total int64, docs []map[string]string, err error)

func (Error) AsFtSearch added in v1.2.1

func (m Error) AsFtSearch() (total int64, docs []FtSearchDoc, err error)

func (Error) AsGeosearch added in v1.2.1

func (m Error) AsGeosearch() (location []GeoLocation, err error)

func (Error) AsInt added in v1.2.1

func (m Error) AsInt() (v int64, err error)

func (Error) AsIntMap added in v1.2.1

func (m Error) AsIntMap() (v map[string]int64, err error)

func (Error) AsIntSlice added in v1.2.1

func (m Error) AsIntSlice() (v []int64, err error)

func (Error) AsJson added in v1.2.1

func (m Error) AsJson(dst any) (err error)

func (Error) AsLMPop added in v1.2.1

func (m Error) AsLMPop() (kvs KeyValues, err error)

func (Error) AsMap added in v1.2.1

func (m Error) AsMap() (v map[string]Message, err error)

func (Error) AsScanEntry added in v1.2.1

func (m Error) AsScanEntry() (e ScanEntry, err error)

func (Error) AsStrMap added in v1.2.1

func (m Error) AsStrMap() (v map[string]string, err error)

func (Error) AsStrSlice added in v1.2.1

func (m Error) AsStrSlice() (v []string, err error)

func (Error) AsString added in v1.2.1

func (m Error) AsString() (v string, err error)

func (Error) AsUint added in v1.2.1

func (m Error) AsUint() (v uint64, err error)

func (Error) AsXRange added in v1.2.1

func (m Error) AsXRange() (entries []XRangeEntry, err error)

func (Error) AsXRangeEntry added in v1.2.1

func (m Error) AsXRangeEntry() (entry XRangeEntry, err error)

func (Error) AsZMPop added in v1.2.1

func (m Error) AsZMPop() (kvs KeyZScores, err error)

func (Error) AsZScore added in v1.2.1

func (m Error) AsZScore() (v ZScore, err error)

func (Error) AsZScores added in v1.2.1

func (m Error) AsZScores() (v []ZScore, err error)

func (*Error) Error added in v1.2.1

func (err *Error) Error() string

func (Error) ExpireAT added in v1.2.1

func (m Error) ExpireAT() (t time.Time, has bool)

func (Error) Expired added in v1.2.1

func (m Error) Expired() (ok bool)

func (Error) IsArray added in v1.2.1

func (m Error) IsArray() (ok bool)

func (*Error) IsAsk added in v1.2.1

func (err *Error) IsAsk() (addr string, ok bool)

func (Error) IsBool added in v1.2.1

func (m Error) IsBool() (ok bool)

func (Error) IsCacheHit added in v1.2.1

func (m Error) IsCacheHit() (ok bool)

func (*Error) IsClusterDown added in v1.2.1

func (err *Error) IsClusterDown() bool

func (Error) IsFloat added in v1.2.1

func (m Error) IsFloat() (ok bool)

func (Error) IsInt added in v1.2.1

func (m Error) IsInt() (ok bool)

func (Error) IsMap added in v1.2.1

func (m Error) IsMap() (ok bool)

func (*Error) IsMoved added in v1.2.1

func (err *Error) IsMoved() (addr string, ok bool)

func (Error) IsNil added in v1.2.1

func (m Error) IsNil() (ok bool)

func (*Error) IsNoScript added in v1.2.1

func (err *Error) IsNoScript() bool

func (Error) IsString added in v1.2.1

func (m Error) IsString() (ok bool)

func (*Error) IsTryAgain added in v1.2.1

func (err *Error) IsTryAgain() bool

type ExistBuilder added in v1.2.1

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

func Exist added in v0.12.1

func Exist(key ...string) ExistBuilder

func (ExistBuilder) Build added in v1.2.1

func (builder ExistBuilder) Build() (cmd Command)

type ExpireAtBuilder added in v1.2.1

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

func ExpireAT added in v1.2.1

func ExpireAT(key string) ExpireAtBuilder

func (ExpireAtBuilder) AT added in v1.2.1

func (builder ExpireAtBuilder) AT(t time.Time) ExpireAtBuilder

func (ExpireAtBuilder) Build added in v1.2.1

func (builder ExpireAtBuilder) Build() (cmd Command)

type ExpireBuilder added in v1.2.1

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

func Expire

func Expire(key string) ExpireBuilder

func (ExpireBuilder) Build added in v1.2.1

func (builder ExpireBuilder) Build() (cmd Command)

func (ExpireBuilder) Seconds added in v1.2.1

func (builder ExpireBuilder) Seconds(sec int64) ExpireBuilder

type ExportParam added in v1.2.1

type ExportParam struct {
	Id string `json:"id"`
}

type FtSearchDoc added in v1.2.1

type FtSearchDoc struct {
	Doc map[string]string `json:"doc"`
	Key string            `json:"key"`
}

type GeoLocation added in v1.0.6

type GeoLocation struct {
	Name      string  `json:"name"`
	Longitude float64 `json:"longitude"`
	Latitude  float64 `json:"latitude"`
	Dist      float64 `json:"dist"`
	GeoHash   int64   `json:"geoHash"`
}

type GetBuilder added in v1.2.1

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

func Get

func Get(key string) GetBuilder

func (GetBuilder) Build added in v1.2.1

func (builder GetBuilder) Build() (cmd Command)

func (GetBuilder) CacheTTL added in v1.2.1

func (builder GetBuilder) CacheTTL(ttl time.Duration) GetBuilder

type GetDelBuilder added in v1.2.1

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

func GetDel added in v1.2.1

func GetDel(key string) GetDelBuilder

func (GetDelBuilder) Build added in v1.2.1

func (builder GetDelBuilder) Build() (cmd Command)

type GetExBuilder added in v1.2.1

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

func GetEX added in v1.2.1

func GetEX(key string) GetExBuilder

func (GetExBuilder) Build added in v1.2.1

func (builder GetExBuilder) Build() (cmd Command)

func (GetExBuilder) Ex added in v1.2.1

func (builder GetExBuilder) Ex(v time.Duration) GetExBuilder

func (GetExBuilder) ExAT added in v1.2.1

func (builder GetExBuilder) ExAT(v time.Time) GetExBuilder

func (GetExBuilder) Persist added in v1.2.1

func (builder GetExBuilder) Persist() GetExBuilder

func (GetExBuilder) Px added in v1.2.1

func (builder GetExBuilder) Px(v time.Duration) GetExBuilder

func (GetExBuilder) PxAT added in v1.2.1

func (builder GetExBuilder) PxAT(v time.Time) GetExBuilder

type GetRangeBuilder added in v1.2.1

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

func GetRange added in v1.2.1

func GetRange(key string, start int64, end int64) GetRangeBuilder

func (GetRangeBuilder) Build added in v1.2.1

func (builder GetRangeBuilder) Build() (cmd Command)

type GetSetBuilder added in v1.2.1

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

func GetSet added in v0.6.0

func GetSet(key string, value string) GetSetBuilder

func (GetSetBuilder) Build added in v1.2.1

func (builder GetSetBuilder) Build() (cmd Command)

type HDELBuilder added in v1.2.1

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

func HDel added in v1.0.6

func HDel(key string, fields ...string) HDELBuilder

func (HDELBuilder) Build added in v1.2.1

func (builder HDELBuilder) Build() (cmd Command)

type HEXISTSBuilder added in v1.2.1

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

func HExist added in v1.0.6

func HExist(key string, field string) HEXISTSBuilder

func (HEXISTSBuilder) Build added in v1.2.1

func (builder HEXISTSBuilder) Build() (cmd Command)

func (HEXISTSBuilder) CacheTTL added in v1.2.1

func (builder HEXISTSBuilder) CacheTTL(ttl time.Duration) HEXISTSBuilder

type HGETALLBuilder added in v1.2.1

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

func HGetALL added in v1.0.6

func HGetALL(key string) HGETALLBuilder

func (HGETALLBuilder) Build added in v1.2.1

func (builder HGETALLBuilder) Build() (cmd Command)

func (HGETALLBuilder) CacheTTL added in v1.2.1

func (builder HGETALLBuilder) CacheTTL(ttl time.Duration) HGETALLBuilder

type HGETBuilder added in v1.2.1

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

func HGet added in v1.0.6

func HGet(key string, field string) HGETBuilder

func (HGETBuilder) Build added in v1.2.1

func (builder HGETBuilder) Build() (cmd Command)

func (HGETBuilder) CacheTTL added in v1.2.1

func (builder HGETBuilder) CacheTTL(ttl time.Duration) HGETBuilder

type HINCRBYBuilder added in v1.2.1

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

func HIncrBy added in v1.2.1

func HIncrBy(key string, field string, delta int64) HINCRBYBuilder

func HIncrByFloat added in v1.2.1

func HIncrByFloat(key string, field string, delta float64) HINCRBYBuilder

func (HINCRBYBuilder) Build added in v1.2.1

func (builder HINCRBYBuilder) Build() (cmd Command)

type HINCRBYFLOATBuilder added in v1.2.1

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

func (HINCRBYFLOATBuilder) Build added in v1.2.1

func (builder HINCRBYFLOATBuilder) Build() (cmd Command)

type HKEYSBuilder added in v1.2.1

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

func HKeys added in v1.2.1

func HKeys(key string) HKEYSBuilder

func (HKEYSBuilder) Build added in v1.2.1

func (builder HKEYSBuilder) Build() (cmd Command)

func (HKEYSBuilder) CacheTTL added in v1.2.1

func (builder HKEYSBuilder) CacheTTL(ttl time.Duration) HKEYSBuilder

type HLENBuilder added in v1.2.1

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

func HLen added in v1.2.1

func HLen(key string) HLENBuilder

func (HLENBuilder) Build added in v1.2.1

func (builder HLENBuilder) Build() (cmd Command)

func (HLENBuilder) CacheTTL added in v1.2.1

func (builder HLENBuilder) CacheTTL(ttl time.Duration) HLENBuilder

type HMGETBuilder added in v1.2.1

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

func HMGet added in v1.2.1

func HMGet(key string, fields ...string) HMGETBuilder

func (HMGETBuilder) Build added in v1.2.1

func (builder HMGETBuilder) Build() (cmd Command)

func (HMGETBuilder) CacheTTL added in v1.2.1

func (builder HMGETBuilder) CacheTTL(ttl time.Duration) HMGETBuilder

type HRANDFIELDBuilder added in v1.2.1

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

func HRandField added in v1.2.1

func HRandField(key string) HRANDFIELDBuilder

func (HRANDFIELDBuilder) Build added in v1.2.1

func (builder HRANDFIELDBuilder) Build() (cmd Command)

func (HRANDFIELDBuilder) Count added in v1.2.1

func (builder HRANDFIELDBuilder) Count(n int64) HRANDFIELDBuilder

func (HRANDFIELDBuilder) WithValues added in v1.2.1

func (builder HRANDFIELDBuilder) WithValues() HRANDFIELDBuilder

type HSCANBuilder added in v1.2.1

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

func HScan added in v1.2.1

func HScan(key string, cursor uint64) HSCANBuilder

func (HSCANBuilder) Build added in v1.2.1

func (builder HSCANBuilder) Build() (cmd Command)

func (HSCANBuilder) Count added in v1.2.1

func (builder HSCANBuilder) Count(n int64) HSCANBuilder

func (HSCANBuilder) Match added in v1.2.1

func (builder HSCANBuilder) Match(pattern string) HSCANBuilder

type HSETBuilder added in v1.2.1

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

func HSet added in v1.0.6

func HSet(key string) HSETBuilder

func (HSETBuilder) Build added in v1.2.1

func (builder HSETBuilder) Build() (cmd Command)

func (HSETBuilder) KeyValue added in v1.2.1

func (builder HSETBuilder) KeyValue(key string, value string) HSETBuilder

type HSETNXBuilder added in v1.2.1

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

func HSetNX added in v1.2.1

func HSetNX(key string) HSETNXBuilder

func (HSETNXBuilder) Build added in v1.2.1

func (builder HSETNXBuilder) Build() (cmd Command)

func (HSETNXBuilder) KeyValue added in v1.2.1

func (builder HSETNXBuilder) KeyValue(key string, value string) HSETNXBuilder

type HSTRLENBuilder added in v1.2.1

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

func HStrLen added in v1.2.1

func HStrLen(key string, field string) HSTRLENBuilder

func (HSTRLENBuilder) Build added in v1.2.1

func (builder HSTRLENBuilder) Build() (cmd Command)

func (HSTRLENBuilder) CacheTTL added in v1.2.1

func (builder HSTRLENBuilder) CacheTTL(ttl time.Duration) HSTRLENBuilder

type HVALSBuilder added in v1.2.1

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

func HValues added in v1.2.1

func HValues(key string) HVALSBuilder

func (HVALSBuilder) Build added in v1.2.1

func (builder HVALSBuilder) Build() (cmd Command)

func (HVALSBuilder) CacheTTL added in v1.2.1

func (builder HVALSBuilder) CacheTTL(ttl time.Duration) HVALSBuilder

type IncompleteCommand added in v1.2.1

type IncompleteCommand interface {
	Build() (cmd Command)
}

type IncrBuilder added in v1.2.1

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

func Incr

func Incr(key string) IncrBuilder

func (IncrBuilder) Build added in v1.2.1

func (builder IncrBuilder) Build() (cmd Command)

type IncrByBuilder added in v1.2.1

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

func IncrBy added in v1.0.0

func IncrBy(key string, delta int64) IncrByBuilder

func (IncrByBuilder) Build added in v1.2.1

func (builder IncrByBuilder) Build() (cmd Command)

type IncrByFloatBuilder added in v1.2.1

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

func IncrByFloat added in v1.2.1

func IncrByFloat(key string, delta float64) IncrByFloatBuilder

func (IncrByFloatBuilder) Build added in v1.2.1

func (builder IncrByFloatBuilder) Build() (cmd Command)

type KeyValues added in v1.2.1

type KeyValues struct {
	Key    string   `json:"key"`
	Values []string `json:"values"`
}

type KeyZScores added in v1.2.1

type KeyZScores struct {
	Key    string   `json:"key"`
	Values []ZScore `json:"values"`
}

type KeysBuilder added in v1.2.1

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

func Keys added in v1.0.0

func Keys(key ...string) KeysBuilder

func (KeysBuilder) Build added in v1.2.1

func (builder KeysBuilder) Build() (cmd Command)

type LCSBuilder added in v1.2.1

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

func LCS added in v1.2.1

func LCS(key1 string, key2 string) LCSBuilder

func (LCSBuilder) Build added in v1.2.1

func (builder LCSBuilder) Build() (cmd Command)

func (LCSBuilder) Idx added in v1.2.1

func (builder LCSBuilder) Idx() LCSBuilder

func (LCSBuilder) Len added in v1.2.1

func (builder LCSBuilder) Len() LCSBuilder

func (LCSBuilder) MinMatchLen added in v1.2.1

func (builder LCSBuilder) MinMatchLen(n int64) LCSBuilder

func (LCSBuilder) WithMatchLen added in v1.2.1

func (builder LCSBuilder) WithMatchLen() LCSBuilder

type LINDEXBuilder added in v1.2.1

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

func LIndex added in v1.2.1

func LIndex(key string, index int64) LINDEXBuilder

func (LINDEXBuilder) Build added in v1.2.1

func (builder LINDEXBuilder) Build() (cmd Command)

func (LINDEXBuilder) CacheTTL added in v1.2.1

func (builder LINDEXBuilder) CacheTTL(ttl time.Duration) LINDEXBuilder

type LINSERTBuilder added in v1.2.1

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

func LInsert added in v1.2.1

func LInsert(key string) LINSERTBuilder

func (LINSERTBuilder) After added in v1.2.1

func (builder LINSERTBuilder) After() LINSERTBuilder

func (LINSERTBuilder) Before added in v1.2.1

func (builder LINSERTBuilder) Before() LINSERTBuilder

func (LINSERTBuilder) Build added in v1.2.1

func (builder LINSERTBuilder) Build() (cmd Command)

func (LINSERTBuilder) Element added in v1.2.1

func (builder LINSERTBuilder) Element(element string) LINSERTBuilder

func (LINSERTBuilder) Pivot added in v1.2.1

func (builder LINSERTBuilder) Pivot(pivot string) LINSERTBuilder

type LLENBuilder added in v1.2.1

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

func LLen added in v1.2.1

func LLen(key string) LLENBuilder

func (LLENBuilder) Build added in v1.2.1

func (builder LLENBuilder) Build() (cmd Command)

func (LLENBuilder) CacheTTL added in v1.2.1

func (builder LLENBuilder) CacheTTL(ttl time.Duration) LLENBuilder

type LMOVEBuilder added in v1.2.1

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

func LMove added in v1.2.1

func LMove(src string, dst string) LMOVEBuilder

func (LMOVEBuilder) Build added in v1.2.1

func (builder LMOVEBuilder) Build() (cmd Command)

func (LMOVEBuilder) Left added in v1.2.1

func (builder LMOVEBuilder) Left() LMOVEBuilder

func (LMOVEBuilder) Right added in v1.2.1

func (builder LMOVEBuilder) Right() LMOVEBuilder

type LMPOPBuilder added in v1.2.1

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

func LMPop added in v1.2.1

func LMPop(numKey int64) LMPOPBuilder

func (LMPOPBuilder) Build added in v1.2.1

func (builder LMPOPBuilder) Build() (cmd Command)

func (LMPOPBuilder) Count added in v1.2.1

func (builder LMPOPBuilder) Count(count int64) LMPOPBuilder

func (LMPOPBuilder) Key added in v1.2.1

func (builder LMPOPBuilder) Key(key ...string) LMPOPBuilder

func (LMPOPBuilder) Left added in v1.2.1

func (builder LMPOPBuilder) Left() LMPOPBuilder

func (LMPOPBuilder) Right added in v1.2.1

func (builder LMPOPBuilder) Right() LMPOPBuilder

type LPOPBuilder added in v1.2.1

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

func LPop added in v1.2.1

func LPop(key string) LPOPBuilder

func (LPOPBuilder) Build added in v1.2.1

func (builder LPOPBuilder) Build() (cmd Command)

func (LPOPBuilder) Count added in v1.2.1

func (builder LPOPBuilder) Count(count int64) LPOPBuilder

type LPOSBuilder added in v1.2.1

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

func LPos added in v1.2.1

func LPos(key string, element string) LPOSBuilder

func (LPOSBuilder) Build added in v1.2.1

func (builder LPOSBuilder) Build() (cmd Command)

func (LPOSBuilder) CacheTTL added in v1.2.1

func (builder LPOSBuilder) CacheTTL(ttl time.Duration) LPOSBuilder

func (LPOSBuilder) Count added in v1.2.1

func (builder LPOSBuilder) Count(count int64) LPOSBuilder

func (LPOSBuilder) MaxLen added in v1.2.1

func (builder LPOSBuilder) MaxLen(maxLen int64) LPOSBuilder

func (LPOSBuilder) Rank added in v1.2.1

func (builder LPOSBuilder) Rank(rank int64) LPOSBuilder

type LPUSHBuilder added in v1.2.1

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

func LPush added in v1.2.1

func LPush(key string, element ...string) LPUSHBuilder

func (LPUSHBuilder) Build added in v1.2.1

func (builder LPUSHBuilder) Build() (cmd Command)

type LPUSHXBuilder added in v1.2.1

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

func LPushX added in v1.2.1

func LPushX(key string, element ...string) LPUSHXBuilder

func (LPUSHXBuilder) Build added in v1.2.1

func (builder LPUSHXBuilder) Build() (cmd Command)

type LRANGEBuilder added in v1.2.1

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

func LRange added in v1.2.1

func LRange(key string, start int64, stop int64) LRANGEBuilder

func (LRANGEBuilder) Build added in v1.2.1

func (builder LRANGEBuilder) Build() (cmd Command)

func (LRANGEBuilder) CacheTTL added in v1.2.1

func (builder LRANGEBuilder) CacheTTL(ttl time.Duration) LRANGEBuilder

type LREMBuilder added in v1.2.1

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

func LRem added in v1.2.1

func LRem(key string, count int64, element string) LREMBuilder

func (LREMBuilder) Build added in v1.2.1

func (builder LREMBuilder) Build() (cmd Command)

type LSETBuilder added in v1.2.1

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

func LSet added in v1.2.1

func LSet(key string, index int64, element string) LSETBuilder

func (LSETBuilder) Build added in v1.2.1

func (builder LSETBuilder) Build() (cmd Command)

type LTRIMBuilder added in v1.2.1

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

func LTRIM added in v1.2.1

func LTRIM(key string, start int64, stop int64) LTRIMBuilder

func (LTRIMBuilder) Build added in v1.2.1

func (builder LTRIMBuilder) Build() (cmd Command)

type List added in v1.2.1

type List struct {
}

func L added in v1.2.1

func L() List

func (List) BLMPop added in v1.2.1

func (l List) BLMPop(timeout float64, numKeys int64) BLMPOPBuilder

func (List) BLMove added in v1.2.1

func (l List) BLMove(src string, dst string) BLMOVEBuilder

func (List) BLPop added in v1.2.1

func (l List) BLPop(key ...string) BLPOPBuilder

func (List) BRPop added in v1.2.1

func (l List) BRPop(key ...string) BRPOPBuilder

func (List) Index added in v1.2.1

func (l List) Index(key string, index int64) LINDEXBuilder

func (List) Insert added in v1.2.1

func (l List) Insert(key string) LINSERTBuilder

func (List) Len added in v1.2.1

func (l List) Len(key string) LLENBuilder

func (List) MPop added in v1.2.1

func (l List) MPop(numKey int64) LMPOPBuilder

func (List) Move added in v1.2.1

func (l List) Move(src string, dst string) LMOVEBuilder

func (List) Pop added in v1.2.1

func (l List) Pop(key string) LPOPBuilder

func (List) Pos added in v1.2.1

func (l List) Pos(key string, element string) LPOSBuilder

func (List) Push added in v1.2.1

func (l List) Push(key string, element ...string) LPUSHBuilder

func (List) PushX added in v1.2.1

func (l List) PushX(key string, element ...string) LPUSHXBuilder

func (List) RPop added in v1.2.1

func (l List) RPop(key string) RPOPBuilder

func (List) RPush added in v1.2.1

func (l List) RPush(key string, element ...string) RPUSHBuilder

func (List) RPushX added in v1.2.1

func (l List) RPushX(key string, element ...string) RPUSHXBuilder

func (List) Range added in v1.2.1

func (l List) Range(key string, start int64, stop int64) LRANGEBuilder

func (List) Rem added in v1.2.1

func (l List) Rem(key string, count int64, element string) LREMBuilder

func (List) Set added in v1.2.1

func (l List) Set(key string, index int64, element string) LSETBuilder

func (List) Trim added in v1.2.1

func (l List) Trim(key string, start int64, stop int64) LTRIMBuilder

type LuaParam added in v1.2.1

type LuaParam struct {
	Readonly bool     `json:"readonly" avro:"readonly"`
	Script   string   `json:"script" avro:"script"`
	Keys     []string `json:"keys" avro:"keys"`
	Args     []string `json:"args" avro:"args"`
}

type MGetBuilder added in v1.2.1

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

func MGet added in v1.0.0

func MGet(key ...string) MGetBuilder

func MSet added in v1.0.0

func MSet() MGetBuilder

func (MGetBuilder) Build added in v1.2.1

func (builder MGetBuilder) Build() (cmd Command)

func (MGetBuilder) CacheTTL added in v1.2.1

func (builder MGetBuilder) CacheTTL(ttl time.Duration) MGetBuilder

type MSetBuilder added in v1.2.1

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

func (MSetBuilder) Build added in v1.2.1

func (builder MSetBuilder) Build() (cmd Command)

func (MSetBuilder) KeyValue added in v1.2.1

func (builder MSetBuilder) KeyValue(key string, value string) MSetBuilder

type MSetNxBuilder added in v1.2.1

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

func MSetNX added in v1.2.1

func MSetNX() MSetNxBuilder

func (MSetNxBuilder) Build added in v1.2.1

func (builder MSetNxBuilder) Build() (cmd Command)

func (MSetNxBuilder) KeyValue added in v1.2.1

func (builder MSetNxBuilder) KeyValue(key string, value string) MSetNxBuilder

type Message added in v1.2.1

type Message interface {
	Expired() (ok bool)
	ExpireAT() (t time.Time, has bool)
	Error() (err error)
	IsNil() (ok bool)
	IsString() (ok bool)
	IsBool() (ok bool)
	IsInt() (ok bool)
	IsFloat() (ok bool)
	IsArray() (ok bool)
	IsMap() (ok bool)
	IsCacheHit() (ok bool)
	AsString() (v string, err error)
	AsBool() (v bool, err error)
	AsInt() (v int64, err error)
	AsUint() (v uint64, err error)
	AsFloat() (v float64, err error)
	AsBytes() (v []byte, err error)
	AsArray() (v []Message, err error)
	AsStrSlice() (v []string, err error)
	AsBytesSlice() (v [][]byte, err error)
	AsIntSlice() (v []int64, err error)
	AsBoolSlice() (v []bool, err error)
	AsFloatSlice() (v []float64, err error)
	AsMap() (v map[string]Message, err error)
	AsStrMap() (v map[string]string, err error)
	AsBytesMap() (v map[string][]byte, err error)
	AsBoolMap() (v map[string]bool, err error)
	AsIntMap() (v map[string]int64, err error)
	AsFloatMap() (v map[string]float64, err error)
	AsXRangeEntry() (entry XRangeEntry, err error)
	AsXRange() (entries []XRangeEntry, err error)
	AsZScore() (v ZScore, err error)
	AsZScores() (v []ZScore, err error)
	AsScanEntry() (e ScanEntry, err error)
	AsLMPop() (kvs KeyValues, err error)
	AsZMPop() (kvs KeyZScores, err error)
	AsFtSearch() (total int64, docs []FtSearchDoc, err error)
	AsFtAggregate() (total int64, docs []map[string]string, err error)
	AsFtAggregateCursor() (cursor, total int64, docs []map[string]string, err error)
	AsGeosearch() (location []GeoLocation, err error)
	AsJson(dst any) (err error)
}

type Option added in v1.2.1

type Option func(options *Options)

func WithAuthCredentials added in v1.2.1

func WithAuthCredentials(fn func(rueidis.AuthCredentialsContext) (rueidis.AuthCredentials, error)) Option

func WithDialFn added in v1.2.1

func WithDialFn(fn func(string, *net.Dialer, *tls.Config) (conn net.Conn, err error)) Option

func WithDialer added in v1.2.1

func WithDialer(dialer *net.Dialer) Option

func WithName added in v1.2.1

func WithName(name string) Option

func WithNewCacheStoreFn added in v1.2.1

func WithNewCacheStoreFn(fn rueidis.NewCacheStoreFn) Option

func WithSendToReplicas added in v1.2.1

func WithSendToReplicas(fn func(cmd rueidis.Completed) bool) Option

func WithSentinelDialer added in v1.2.1

func WithSentinelDialer(dialer *net.Dialer) Option

type Options added in v1.2.1

type Options struct {
	configs.Options
	// contains filtered or unexported fields
}

type PExpireAtBuilder added in v1.2.1

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

func PExpireAT added in v1.2.1

func PExpireAT(key string) PExpireAtBuilder

func (PExpireAtBuilder) AT added in v1.2.1

func (PExpireAtBuilder) Build added in v1.2.1

func (builder PExpireAtBuilder) Build() (cmd Command)

type PExpireBuilder added in v1.2.1

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

func PExpire added in v1.2.1

func PExpire(key string) PExpireBuilder

func (PExpireBuilder) Build added in v1.2.1

func (builder PExpireBuilder) Build() (cmd Command)

func (PExpireBuilder) Milliseconds added in v1.2.1

func (builder PExpireBuilder) Milliseconds(n int64) PExpireBuilder

type PTTLBuilder added in v1.2.1

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

func PTTL added in v1.2.1

func PTTL(key string) PTTLBuilder

func (PTTLBuilder) Build added in v1.2.1

func (builder PTTLBuilder) Build() (cmd Command)

func (PTTLBuilder) CacheTTL added in v1.2.1

func (builder PTTLBuilder) CacheTTL(ttl time.Duration) PTTLBuilder

type PersistBuilder added in v1.2.1

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

func Persist

func Persist(key string) PersistBuilder

func (PersistBuilder) Build added in v1.2.1

func (builder PersistBuilder) Build() (cmd Command)

type RPOPBuilder added in v1.2.1

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

func RPop added in v1.2.1

func RPop(key string) RPOPBuilder

func (RPOPBuilder) Build added in v1.2.1

func (builder RPOPBuilder) Build() (cmd Command)

func (RPOPBuilder) Count added in v1.2.1

func (builder RPOPBuilder) Count(count int64) RPOPBuilder

type RPUSHBuilder added in v1.2.1

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

func RPush added in v1.2.1

func RPush(key string, element ...string) RPUSHBuilder

func (RPUSHBuilder) Build added in v1.2.1

func (builder RPUSHBuilder) Build() (cmd Command)

type RPUSHXBuilder added in v1.2.1

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

func RPushX added in v1.2.1

func RPushX(key string, element ...string) RPUSHXBuilder

func (RPUSHXBuilder) Build added in v1.2.1

func (builder RPUSHXBuilder) Build() (cmd Command)

type RenameBuilder added in v1.2.1

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

func Rename added in v1.2.1

func Rename(key string, newKey string) RenameBuilder

func (RenameBuilder) Build added in v1.2.1

func (builder RenameBuilder) Build() (cmd Command)

type RenameNxBuilder added in v1.2.1

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

func RenameNX added in v1.2.1

func RenameNX(key string, newKey string) RenameNxBuilder

func (RenameNxBuilder) Build added in v1.2.1

func (builder RenameNxBuilder) Build() (cmd Command)

type Result added in v0.12.1

type Result interface {
	Expired() (ok bool)
	ExpireAT() (t time.Time, has bool)
	Error() (err error)
	IsNil() (ok bool)
	IsCacheHit() (ok bool)
	Message() (msg Message, err error)
	AsString() (v string, err error)
	AsBool() (v bool, err error)
	AsInt() (v int64, err error)
	AsUint() (v uint64, err error)
	AsFloat() (v float64, err error)
	AsBytes() (v []byte, err error)
	AsArray() (v []Message, err error)
	AsStrSlice() (v []string, err error)
	AsBytesSlice() (v [][]byte, err error)
	AsIntSlice() (v []int64, err error)
	AsBoolSlice() (v []bool, err error)
	AsFloatSlice() (v []float64, err error)
	AsMap() (v map[string]Message, err error)
	AsStrMap() (v map[string]string, err error)
	AsBytesMap() (v map[string][]byte, err error)
	AsBoolMap() (v map[string]bool, err error)
	AsIntMap() (v map[string]int64, err error)
	AsFloatMap() (v map[string]float64, err error)
	AsXRangeEntry() (entry XRangeEntry, err error)
	AsXRange() (entries []XRangeEntry, err error)
	AsZScore() (v ZScore, err error)
	AsZScores() (v []ZScore, err error)
	AsScanEntry() (e ScanEntry, err error)
	AsLMPop() (kvs KeyValues, err error)
	AsZMPop() (kvs KeyZScores, err error)
	AsFtSearch() (total int64, docs []FtSearchDoc, err error)
	AsFtAggregate() (total int64, docs []map[string]string, err error)
	AsFtAggregateCursor() (cursor, total int64, docs []map[string]string, err error)
	AsGeosearch() (location []GeoLocation, err error)
	AsJson(dst any) (err error)
}

func Do

func Do(ctx context.Context, command IncompleteCommand) (v Result, err error)

func DoCache added in v1.2.1

func DoCache(ctx context.Context, command IncompleteCommand) (v Result, err error)

func DoMultiCache added in v1.2.1

func DoMultiCache(ctx context.Context, commands ...IncompleteCommand) (v []Result, err error)

func ExecLua added in v1.2.1

func ExecLua(ctx context.Context, script string, keys []string, args []string, readonly bool) (v Result, err error)

type Results added in v1.2.84

type Results interface {
	Next() (r Result, has bool)
}

func DoMulti added in v1.2.1

func DoMulti(ctx context.Context, commands ...IncompleteCommand) (v Results, err error)

type SADDBuilder added in v1.2.1

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

func SAdd added in v0.12.1

func SAdd(key string, members ...string) SADDBuilder

func (SADDBuilder) Build added in v1.2.1

func (builder SADDBuilder) Build() (cmd Command)

type SCARDBuilder added in v1.2.1

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

func SCard added in v1.2.1

func SCard(key string) SCARDBuilder

func (SCARDBuilder) Build added in v1.2.1

func (builder SCARDBuilder) Build() (cmd Command)

func (SCARDBuilder) CacheTTL added in v1.2.1

func (builder SCARDBuilder) CacheTTL(ttl time.Duration) SCARDBuilder

type SDIFFBuilder added in v1.2.1

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

func SDiff added in v1.2.1

func SDiff(key ...string) SDIFFBuilder

func (SDIFFBuilder) Build added in v1.2.1

func (builder SDIFFBuilder) Build() (cmd Command)

type SDIFFSTOREBuilder added in v1.2.1

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

func SDiffStore added in v1.2.1

func SDiffStore(dst string, key ...string) SDIFFSTOREBuilder

func (SDIFFSTOREBuilder) Build added in v1.2.1

func (builder SDIFFSTOREBuilder) Build() (cmd Command)

type SINTERBuilder added in v1.2.1

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

func SInter added in v1.2.1

func SInter(key ...string) SINTERBuilder

func (SINTERBuilder) Build added in v1.2.1

func (builder SINTERBuilder) Build() (cmd Command)

type SINTERCARDBuilder added in v1.2.1

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

func SInterCard added in v1.2.1

func SInterCard(numKey int64, key ...string) SINTERCARDBuilder

func (SINTERCARDBuilder) Build added in v1.2.1

func (builder SINTERCARDBuilder) Build() (cmd Command)

func (SINTERCARDBuilder) Limit added in v1.2.1

func (builder SINTERCARDBuilder) Limit(limit int64) SINTERCARDBuilder

type SINTERSTOREBuilder added in v1.2.1

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

func SISMember added in v1.2.1

func SISMember(key string, member string) SINTERSTOREBuilder

func SInterStore added in v1.2.1

func SInterStore(dst string, key ...string) SINTERSTOREBuilder

func (SINTERSTOREBuilder) Build added in v1.2.1

func (builder SINTERSTOREBuilder) Build() (cmd Command)

type SISMEMBERBuilder added in v1.2.1

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

func (SISMEMBERBuilder) Build added in v1.2.1

func (builder SISMEMBERBuilder) Build() (cmd Command)

func (SISMEMBERBuilder) CacheTTL added in v1.2.1

func (builder SISMEMBERBuilder) CacheTTL(ttl time.Duration) SISMEMBERBuilder

type SMEMBERSBuilder added in v1.2.1

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

func SMembers added in v0.12.1

func SMembers(key string) SMEMBERSBuilder

func (SMEMBERSBuilder) Build added in v1.2.1

func (builder SMEMBERSBuilder) Build() (cmd Command)

func (SMEMBERSBuilder) CacheTTL added in v1.2.1

func (builder SMEMBERSBuilder) CacheTTL(ttl time.Duration) SMEMBERSBuilder

type SMISMEMBERBuilder added in v1.2.1

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

func SMISMember added in v1.2.1

func SMISMember(key string, members ...string) SMISMEMBERBuilder

func (SMISMEMBERBuilder) Build added in v1.2.1

func (builder SMISMEMBERBuilder) Build() (cmd Command)

func (SMISMEMBERBuilder) CacheTTL added in v1.2.1

func (builder SMISMEMBERBuilder) CacheTTL(ttl time.Duration) SMISMEMBERBuilder

type SMOVEBuilder added in v1.2.1

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

func SMove added in v1.2.1

func SMove(src string, dst string, member string) SMOVEBuilder

func (SMOVEBuilder) Build added in v1.2.1

func (builder SMOVEBuilder) Build() (cmd Command)

type SPOPBuilder added in v1.2.1

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

func SPop added in v1.2.1

func SPop(key string) SPOPBuilder

func (SPOPBuilder) Build added in v1.2.1

func (builder SPOPBuilder) Build() (cmd Command)

func (SPOPBuilder) Count added in v1.2.1

func (builder SPOPBuilder) Count(count int64) SPOPBuilder

type SRANDMEMBERBuilder added in v1.2.1

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

func SRandMember added in v1.2.1

func SRandMember(key string) SRANDMEMBERBuilder

func SRem added in v0.12.1

func SRem(key string, members ...string) SRANDMEMBERBuilder

func (SRANDMEMBERBuilder) Build added in v1.2.1

func (builder SRANDMEMBERBuilder) Build() (cmd Command)

func (SRANDMEMBERBuilder) Count added in v1.2.1

func (builder SRANDMEMBERBuilder) Count(count int64) SRANDMEMBERBuilder

type SREMBuilder added in v1.2.1

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

func (SREMBuilder) Build added in v1.2.1

func (builder SREMBuilder) Build() (cmd Command)

type SSCANBuilder added in v1.2.1

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

func SScan added in v1.2.1

func SScan(key string, cursor uint64) SSCANBuilder

func (SSCANBuilder) Build added in v1.2.1

func (builder SSCANBuilder) Build() (cmd Command)

func (SSCANBuilder) Count added in v1.2.1

func (builder SSCANBuilder) Count(count int64) SSCANBuilder

func (SSCANBuilder) Match added in v1.2.1

func (builder SSCANBuilder) Match(pattern string) SSCANBuilder

type SUNIONBuilder added in v1.2.1

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

func SUnion added in v1.2.1

func SUnion(key ...string) SUNIONBuilder

func (SUNIONBuilder) Build added in v1.2.1

func (builder SUNIONBuilder) Build() (cmd Command)

type SUNIONSTOREBuilder added in v1.2.1

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

func SUnionStore added in v1.2.1

func SUnionStore(dst string, key ...string) SUNIONSTOREBuilder

func (SUNIONSTOREBuilder) Build added in v1.2.1

func (builder SUNIONSTOREBuilder) Build() (cmd Command)

type ScanBuilder added in v1.2.1

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

func Scan added in v1.0.0

func Scan(key string, cursor int64) ScanBuilder

func (ScanBuilder) Build added in v1.2.1

func (builder ScanBuilder) Build() (cmd Command)

func (ScanBuilder) Count added in v1.2.1

func (builder ScanBuilder) Count(n int64) ScanBuilder

func (ScanBuilder) Match added in v1.2.1

func (builder ScanBuilder) Match(pattern string) ScanBuilder

func (ScanBuilder) Type added in v1.2.1

func (builder ScanBuilder) Type(typ string) ScanBuilder

type ScanEntry added in v1.2.1

type ScanEntry struct {
	Elements []string `json:"elements"`
	Cursor   uint64   `json:"cursor"`
}

type SetBuilder added in v1.2.1

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

func Set

func Set(key string, value string) SetBuilder

func (SetBuilder) Build added in v1.2.1

func (builder SetBuilder) Build() (cmd Command)

func (SetBuilder) Ex added in v1.2.1

func (builder SetBuilder) Ex(v time.Duration) SetBuilder

func (SetBuilder) ExAT added in v1.2.1

func (builder SetBuilder) ExAT(v time.Time) SetBuilder

func (SetBuilder) Get added in v1.2.1

func (builder SetBuilder) Get() SetBuilder

func (SetBuilder) KeepTTL added in v1.2.1

func (builder SetBuilder) KeepTTL() SetBuilder

func (SetBuilder) NX added in v1.2.1

func (builder SetBuilder) NX() SetBuilder

func (SetBuilder) Px added in v1.2.1

func (builder SetBuilder) Px(v time.Duration) SetBuilder

func (SetBuilder) PxAT added in v1.2.1

func (builder SetBuilder) PxAT(v time.Time) SetBuilder

func (SetBuilder) XX added in v1.2.1

func (builder SetBuilder) XX() SetBuilder

type SetRangeBuilder added in v1.2.1

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

func SetRange added in v1.2.1

func SetRange(key string, offset int64, value string) SetRangeBuilder

func (SetRangeBuilder) Build added in v1.2.1

func (builder SetRangeBuilder) Build() (cmd Command)

type Sets added in v1.2.1

type Sets struct {
}

func S added in v1.2.1

func S() Sets

func (Sets) Add added in v1.2.1

func (s Sets) Add(key string, members ...string) SADDBuilder

func (Sets) Card added in v1.2.1

func (s Sets) Card(key string) SCARDBuilder

func (Sets) Diff added in v1.2.1

func (s Sets) Diff(key ...string) SDIFFBuilder

func (Sets) DiffStore added in v1.2.1

func (s Sets) DiffStore(dst string, key ...string) SDIFFSTOREBuilder

func (Sets) ISMember added in v1.2.1

func (s Sets) ISMember(key string, member string) SINTERSTOREBuilder

func (Sets) Inter added in v1.2.1

func (s Sets) Inter(key ...string) SINTERBuilder

func (Sets) InterCard added in v1.2.1

func (s Sets) InterCard(numKey int64, key ...string) SINTERCARDBuilder

func (Sets) InterStore added in v1.2.1

func (s Sets) InterStore(dst string, key ...string) SINTERSTOREBuilder

func (Sets) MISMember added in v1.2.1

func (s Sets) MISMember(key string, members ...string) SMISMEMBERBuilder

func (Sets) Members added in v1.2.1

func (s Sets) Members(key string) SMEMBERSBuilder

func (Sets) Move added in v1.2.1

func (s Sets) Move(src string, dst string, member string) SMOVEBuilder

func (Sets) Pop added in v1.2.1

func (s Sets) Pop(key string) SPOPBuilder

func (Sets) RandMember added in v1.2.1

func (s Sets) RandMember(key string) SRANDMEMBERBuilder

func (Sets) Rem added in v1.2.1

func (s Sets) Rem(key string, members ...string) SRANDMEMBERBuilder

func (Sets) Scan added in v1.2.1

func (s Sets) Scan(key string, cursor uint64) SSCANBuilder

func (Sets) Union added in v1.2.1

func (s Sets) Union(key ...string) SUNIONBuilder

func (Sets) UnionStore added in v1.2.1

func (s Sets) UnionStore(dst string, key ...string) SUNIONSTOREBuilder

type SortBuilder added in v1.2.1

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

func Sort added in v1.0.0

func Sort(key string) SortBuilder

func (SortBuilder) Alpha added in v1.2.1

func (builder SortBuilder) Alpha() SortBuilder

func (SortBuilder) Asc added in v1.2.1

func (builder SortBuilder) Asc() SortBuilder

func (SortBuilder) Build added in v1.2.1

func (builder SortBuilder) Build() (cmd Command)

func (SortBuilder) By added in v1.2.1

func (builder SortBuilder) By(pattern string) SortBuilder

func (SortBuilder) Desc added in v1.2.1

func (builder SortBuilder) Desc() SortBuilder

func (SortBuilder) Get added in v1.2.1

func (builder SortBuilder) Get(pattern string) SortBuilder

func (SortBuilder) Limit added in v1.2.1

func (builder SortBuilder) Limit(offset int64, limit int64) SortBuilder

func (SortBuilder) Store added in v1.2.1

func (builder SortBuilder) Store(dst string) SortBuilder

type SortRoBuilder added in v1.2.1

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

func SortRO added in v1.2.1

func SortRO(key string) SortRoBuilder

func (SortRoBuilder) Alpha added in v1.2.1

func (builder SortRoBuilder) Alpha() SortRoBuilder

func (SortRoBuilder) Asc added in v1.2.1

func (builder SortRoBuilder) Asc() SortRoBuilder

func (SortRoBuilder) Build added in v1.2.1

func (builder SortRoBuilder) Build() (cmd Command)

func (SortRoBuilder) By added in v1.2.1

func (builder SortRoBuilder) By(pattern string) SortRoBuilder

func (SortRoBuilder) Desc added in v1.2.1

func (builder SortRoBuilder) Desc() SortRoBuilder

func (SortRoBuilder) Get added in v1.2.1

func (builder SortRoBuilder) Get(pattern string) SortRoBuilder

func (SortRoBuilder) Limit added in v1.2.1

func (builder SortRoBuilder) Limit(offset int64, limit int64) SortRoBuilder

type SortedSet added in v1.2.1

type SortedSet struct {
}

func Z added in v1.0.0

func Z() SortedSet

func (SortedSet) Add added in v1.2.1

func (s SortedSet) Add(key string) ZADDBuilder

func (SortedSet) BZMPop added in v1.2.1

func (s SortedSet) BZMPop(timeout float64, numKeys int64) BZMPOPBuilder

func (SortedSet) BZPopMax added in v1.2.1

func (s SortedSet) BZPopMax(timeout float64, keys ...string) BZPOPMAXBuilder

func (SortedSet) Card added in v1.2.1

func (s SortedSet) Card(key string) ZCARDBuilder

func (SortedSet) Count added in v1.2.1

func (s SortedSet) Count(key string, min string, max string) ZCOUNTBuilder

func (SortedSet) Diff added in v1.2.1

func (s SortedSet) Diff(numKey int64) ZDIFFBuilder

func (SortedSet) DiffStore added in v1.2.1

func (s SortedSet) DiffStore(dst string, numKey int64, keys ...string) ZDIFFSTOREBuilder

func (SortedSet) Inter added in v1.2.1

func (s SortedSet) Inter(numKey int64) ZINTERBuilder

func (SortedSet) InterCard added in v1.2.1

func (s SortedSet) InterCard(numKey int64) ZINTERCARDBuilder

func (SortedSet) InterStore added in v1.2.1

func (s SortedSet) InterStore(dst string, numKey int64) ZINTERSTOREBuilder

func (SortedSet) LexCount added in v1.2.1

func (s SortedSet) LexCount(key string, min string, max string) ZLEXCOUNTBuilder

func (SortedSet) MPop added in v1.2.1

func (s SortedSet) MPop(numKey int64) ZMPOPBuilder

func (SortedSet) MScore added in v1.2.1

func (s SortedSet) MScore(key string, members ...string) ZMSCOREBuilder

func (SortedSet) PopMax added in v1.2.1

func (s SortedSet) PopMax(key string) ZPOPMAXBuilder

func (SortedSet) PopMin added in v1.2.1

func (s SortedSet) PopMin(key string) ZPOPMINBuilder

func (SortedSet) RandomMember added in v1.2.1

func (s SortedSet) RandomMember(key string) ZRANDMEMBERBuilder

func (SortedSet) Range added in v1.2.1

func (s SortedSet) Range(key string, min string, max string) ZRANGEBuilder

func (SortedSet) RangeStore added in v1.2.1

func (s SortedSet) RangeStore(dst string, src string, key string, min string, max string) ZRANGESTOREBuilder

func (SortedSet) Rank added in v1.2.1

func (s SortedSet) Rank(key string, member string) ZRANKBuilder

func (SortedSet) Rem added in v1.2.1

func (s SortedSet) Rem(key string, members ...string) ZREMBuilder

func (SortedSet) RemRangeByLex added in v1.2.1

func (s SortedSet) RemRangeByLex(key string, min string, max string) ZREMRANGEBYLEXBuilder

func (SortedSet) RemRangeByRank added in v1.2.1

func (s SortedSet) RemRangeByRank(key string, start int64, stop int64) ZREMRANGEBYRANKBuilder

func (SortedSet) RemRangeByScore added in v1.2.1

func (s SortedSet) RemRangeByScore(key string, min string, max string) ZREMRANGEBYSCOREBuilder

func (SortedSet) RevRank added in v1.2.1

func (s SortedSet) RevRank(key string, member string) ZREVRANKBuilder

func (SortedSet) Scan added in v1.2.1

func (s SortedSet) Scan(key string, cursor uint64) ZSCANBuilder

func (SortedSet) Score added in v1.2.1

func (s SortedSet) Score(key string, member string) ZSCOREBuilder

func (SortedSet) Union added in v1.2.1

func (s SortedSet) Union(numKey int64) ZUNIONBuilder

func (SortedSet) UnionStore added in v1.2.1

func (s SortedSet) UnionStore(dst string, numKey int64) ZUNIONSTOREBuilder

type StrLenBuilder added in v1.2.1

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

func StrLen added in v1.2.1

func StrLen(key string) StrLenBuilder

func (StrLenBuilder) Build added in v1.2.1

func (builder StrLenBuilder) Build() (cmd Command)

func (StrLenBuilder) CacheTTL added in v1.2.1

func (builder StrLenBuilder) CacheTTL(ttl time.Duration) StrLenBuilder

type TTLBuilder added in v1.2.1

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

func TTL

func TTL(key string) TTLBuilder

func (TTLBuilder) Build added in v1.2.1

func (builder TTLBuilder) Build() (cmd Command)

func (TTLBuilder) CacheTTL added in v1.2.1

func (builder TTLBuilder) CacheTTL(ttl time.Duration) TTLBuilder

type TouchBuilder added in v1.2.1

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

func Touch added in v1.2.1

func Touch(key string) TouchBuilder

func (TouchBuilder) Build added in v1.2.1

func (builder TouchBuilder) Build() (cmd Command)

type UnlinksBuilder added in v1.2.1

type UnlinksBuilder struct {
	// contains filtered or unexported fields
}
func Unlinks(key ...string) UnlinksBuilder

func (UnlinksBuilder) Build added in v1.2.1

func (builder UnlinksBuilder) Build() (cmd Command)

type XRangeEntry added in v1.2.1

type XRangeEntry struct {
	FieldValues map[string]string `json:"fieldValues"`
	Id          string            `json:"id"`
}

type ZADDBuilder added in v1.2.1

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

func ZAdd

func ZAdd(key string) ZADDBuilder

func (ZADDBuilder) Build added in v1.2.1

func (builder ZADDBuilder) Build() (cmd Command)

func (ZADDBuilder) Ch added in v1.2.1

func (builder ZADDBuilder) Ch() ZADDBuilder

func (ZADDBuilder) Gt added in v1.2.1

func (builder ZADDBuilder) Gt() ZADDBuilder

func (ZADDBuilder) Incr added in v1.2.1

func (builder ZADDBuilder) Incr() ZADDBuilder

func (ZADDBuilder) Lt added in v1.2.1

func (builder ZADDBuilder) Lt() ZADDBuilder

func (ZADDBuilder) Nx added in v1.2.1

func (builder ZADDBuilder) Nx() ZADDBuilder

func (ZADDBuilder) ScoreMember added in v1.2.1

func (builder ZADDBuilder) ScoreMember(score float64, member string) ZADDBuilder

func (ZADDBuilder) Xx added in v1.2.1

func (builder ZADDBuilder) Xx() ZADDBuilder

type ZCARDBuilder added in v1.2.1

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

func ZCard

func ZCard(key string) ZCARDBuilder

func (ZCARDBuilder) Build added in v1.2.1

func (builder ZCARDBuilder) Build() (cmd Command)

func (ZCARDBuilder) CacheTTL added in v1.2.1

func (builder ZCARDBuilder) CacheTTL(ttl time.Duration) ZCARDBuilder

type ZCOUNTBuilder added in v1.2.1

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

func ZCount added in v1.0.0

func ZCount(key string, min string, max string) ZCOUNTBuilder

func (ZCOUNTBuilder) Build added in v1.2.1

func (builder ZCOUNTBuilder) Build() (cmd Command)

func (ZCOUNTBuilder) CacheTTL added in v1.2.1

func (builder ZCOUNTBuilder) CacheTTL(ttl time.Duration) ZCOUNTBuilder

type ZDIFFBuilder added in v1.2.1

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

func ZDiff added in v1.2.1

func ZDiff(numKey int64) ZDIFFBuilder

func (ZDIFFBuilder) Build added in v1.2.1

func (builder ZDIFFBuilder) Build() (cmd Command)

func (ZDIFFBuilder) Key added in v1.2.1

func (builder ZDIFFBuilder) Key(keys ...string) ZDIFFBuilder

func (ZDIFFBuilder) Withscores added in v1.2.1

func (builder ZDIFFBuilder) Withscores() ZDIFFBuilder

type ZDIFFSTOREBuilder added in v1.2.1

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

func ZDiffStore added in v1.2.1

func ZDiffStore(dst string, numKey int64, keys ...string) ZDIFFSTOREBuilder

func (ZDIFFSTOREBuilder) Build added in v1.2.1

func (builder ZDIFFSTOREBuilder) Build() (cmd Command)

type ZINTERBuilder added in v1.2.1

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

func ZInter added in v1.2.1

func ZInter(numKey int64) ZINTERBuilder

func (ZINTERBuilder) AggregateMax added in v1.2.1

func (builder ZINTERBuilder) AggregateMax() ZINTERBuilder

func (ZINTERBuilder) AggregateMin added in v1.2.1

func (builder ZINTERBuilder) AggregateMin() ZINTERBuilder

func (ZINTERBuilder) AggregateSum added in v1.2.1

func (builder ZINTERBuilder) AggregateSum() ZINTERBuilder

func (ZINTERBuilder) Build added in v1.2.1

func (builder ZINTERBuilder) Build() (cmd Command)

func (ZINTERBuilder) Key added in v1.2.1

func (builder ZINTERBuilder) Key(keys ...string) ZINTERBuilder

func (ZINTERBuilder) Weights added in v1.2.1

func (builder ZINTERBuilder) Weights(weights ...int64) ZINTERBuilder

func (ZINTERBuilder) Withscores added in v1.2.1

func (builder ZINTERBuilder) Withscores() ZINTERBuilder

type ZINTERCARDBuilder added in v1.2.1

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

func ZInterCard added in v1.2.1

func ZInterCard(numKey int64) ZINTERCARDBuilder

func (ZINTERCARDBuilder) Build added in v1.2.1

func (builder ZINTERCARDBuilder) Build() (cmd Command)

func (ZINTERCARDBuilder) Key added in v1.2.1

func (builder ZINTERCARDBuilder) Key(keys ...string) ZINTERCARDBuilder

func (ZINTERCARDBuilder) Limit added in v1.2.1

func (builder ZINTERCARDBuilder) Limit(limit int64) ZINTERCARDBuilder

type ZINTERSTOREBuilder added in v1.2.1

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

func ZInterStore added in v1.2.1

func ZInterStore(dst string, numKey int64) ZINTERSTOREBuilder

func (ZINTERSTOREBuilder) AggregateMax added in v1.2.1

func (builder ZINTERSTOREBuilder) AggregateMax() ZINTERSTOREBuilder

func (ZINTERSTOREBuilder) AggregateMin added in v1.2.1

func (builder ZINTERSTOREBuilder) AggregateMin() ZINTERSTOREBuilder

func (ZINTERSTOREBuilder) AggregateSum added in v1.2.1

func (builder ZINTERSTOREBuilder) AggregateSum() ZINTERSTOREBuilder

func (ZINTERSTOREBuilder) Build added in v1.2.1

func (builder ZINTERSTOREBuilder) Build() (cmd Command)

func (ZINTERSTOREBuilder) Key added in v1.2.1

func (builder ZINTERSTOREBuilder) Key(keys ...string) ZINTERSTOREBuilder

func (ZINTERSTOREBuilder) Max added in v1.2.1

func (builder ZINTERSTOREBuilder) Max() ZINTERSTOREBuilder

func (ZINTERSTOREBuilder) Min added in v1.2.1

func (builder ZINTERSTOREBuilder) Min() ZINTERSTOREBuilder

func (ZINTERSTOREBuilder) Weights added in v1.2.1

func (builder ZINTERSTOREBuilder) Weights(weights ...int64) ZINTERSTOREBuilder

type ZLEXCOUNTBuilder added in v1.2.1

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

func ZLexCount added in v1.2.1

func ZLexCount(key string, min string, max string) ZLEXCOUNTBuilder

func (ZLEXCOUNTBuilder) Build added in v1.2.1

func (builder ZLEXCOUNTBuilder) Build() (cmd Command)

func (ZLEXCOUNTBuilder) CacheTTL added in v1.2.1

func (builder ZLEXCOUNTBuilder) CacheTTL(ttl time.Duration) ZLEXCOUNTBuilder

type ZMPOPBuilder added in v1.2.1

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

func ZMPop added in v1.2.1

func ZMPop(numKey int64) ZMPOPBuilder

func (ZMPOPBuilder) Build added in v1.2.1

func (builder ZMPOPBuilder) Build() (cmd Command)

func (ZMPOPBuilder) Count added in v1.2.1

func (builder ZMPOPBuilder) Count(count int64) ZMPOPBuilder

func (ZMPOPBuilder) Key added in v1.2.1

func (builder ZMPOPBuilder) Key(keys ...string) ZMPOPBuilder

type ZMSCOREBuilder added in v1.2.1

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

func ZMScore added in v1.2.1

func ZMScore(key string, members ...string) ZMSCOREBuilder

func (ZMSCOREBuilder) Build added in v1.2.1

func (builder ZMSCOREBuilder) Build() (cmd Command)

func (ZMSCOREBuilder) CacheTTL added in v1.2.1

func (builder ZMSCOREBuilder) CacheTTL(ttl time.Duration) ZMSCOREBuilder

type ZPOPMAXBuilder added in v1.2.1

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

func ZPopMax added in v1.2.1

func ZPopMax(key string) ZPOPMAXBuilder

func (ZPOPMAXBuilder) Build added in v1.2.1

func (builder ZPOPMAXBuilder) Build() (cmd Command)

func (ZPOPMAXBuilder) Count added in v1.2.1

func (builder ZPOPMAXBuilder) Count(count int64) ZPOPMAXBuilder

type ZPOPMINBuilder added in v1.2.1

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

func ZPopMin added in v1.2.1

func ZPopMin(key string) ZPOPMINBuilder

func (ZPOPMINBuilder) Build added in v1.2.1

func (builder ZPOPMINBuilder) Build() (cmd Command)

func (ZPOPMINBuilder) Count added in v1.2.1

func (builder ZPOPMINBuilder) Count(count int64) ZPOPMINBuilder

type ZRANDMEMBERBuilder added in v1.2.1

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

func ZRandomMember added in v1.2.1

func ZRandomMember(key string) ZRANDMEMBERBuilder

func (ZRANDMEMBERBuilder) Build added in v1.2.1

func (builder ZRANDMEMBERBuilder) Build() (cmd Command)

func (ZRANDMEMBERBuilder) Count added in v1.2.1

func (builder ZRANDMEMBERBuilder) Count(count int64) ZRANDMEMBERBuilder

func (ZRANDMEMBERBuilder) Withscores added in v1.2.1

func (builder ZRANDMEMBERBuilder) Withscores() ZRANDMEMBERBuilder

type ZRANGEBuilder added in v1.2.1

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

func ZRange

func ZRange(key string, min string, max string) ZRANGEBuilder

func (ZRANGEBuilder) Build added in v1.2.1

func (builder ZRANGEBuilder) Build() (cmd Command)

func (ZRANGEBuilder) ByLex added in v1.2.1

func (builder ZRANGEBuilder) ByLex() ZRANGEBuilder

func (ZRANGEBuilder) ByScore added in v1.2.1

func (builder ZRANGEBuilder) ByScore() ZRANGEBuilder

func (ZRANGEBuilder) CacheTTL added in v1.2.1

func (builder ZRANGEBuilder) CacheTTL(ttl time.Duration) ZRANGEBuilder

func (ZRANGEBuilder) Limit added in v1.2.1

func (builder ZRANGEBuilder) Limit(offset int64, limit int64) ZRANGEBuilder

func (ZRANGEBuilder) Rev added in v1.2.1

func (builder ZRANGEBuilder) Rev() ZRANGEBuilder

func (ZRANGEBuilder) Withscores added in v1.2.1

func (builder ZRANGEBuilder) Withscores() ZRANGEBuilder

type ZRANGESTOREBuilder added in v1.2.1

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

func ZRangeStore added in v1.2.1

func ZRangeStore(dst string, src string, key string, min string, max string) ZRANGESTOREBuilder

func (ZRANGESTOREBuilder) Build added in v1.2.1

func (builder ZRANGESTOREBuilder) Build() (cmd Command)

func (ZRANGESTOREBuilder) ByLex added in v1.2.1

func (builder ZRANGESTOREBuilder) ByLex() ZRANGESTOREBuilder

func (ZRANGESTOREBuilder) ByScore added in v1.2.1

func (builder ZRANGESTOREBuilder) ByScore() ZRANGESTOREBuilder

func (ZRANGESTOREBuilder) Limit added in v1.2.1

func (builder ZRANGESTOREBuilder) Limit(offset int64, limit int64) ZRANGESTOREBuilder

func (ZRANGESTOREBuilder) Rev added in v1.2.1

func (builder ZRANGESTOREBuilder) Rev() ZRANGESTOREBuilder

type ZRANKBuilder added in v1.2.1

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

func ZRank added in v1.2.1

func ZRank(key string, member string) ZRANKBuilder

func (ZRANKBuilder) Build added in v1.2.1

func (builder ZRANKBuilder) Build() (cmd Command)

func (ZRANKBuilder) CacheTTL added in v1.2.1

func (builder ZRANKBuilder) CacheTTL(ttl time.Duration) ZRANKBuilder

func (ZRANKBuilder) Withscores added in v1.2.1

func (builder ZRANKBuilder) Withscores() ZRANKBuilder

type ZREMBuilder added in v1.2.1

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

func ZRem

func ZRem(key string, members ...string) ZREMBuilder

func (ZREMBuilder) Build added in v1.2.1

func (builder ZREMBuilder) Build() (cmd Command)

type ZREMRANGEBYLEXBuilder added in v1.2.1

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

func ZRemRangeByLex added in v1.2.1

func ZRemRangeByLex(key string, min string, max string) ZREMRANGEBYLEXBuilder

func (ZREMRANGEBYLEXBuilder) Build added in v1.2.1

func (builder ZREMRANGEBYLEXBuilder) Build() (cmd Command)

type ZREMRANGEBYRANKBuilder added in v1.2.1

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

func ZRemRangeByRank added in v1.0.0

func ZRemRangeByRank(key string, start int64, stop int64) ZREMRANGEBYRANKBuilder

func (ZREMRANGEBYRANKBuilder) Build added in v1.2.1

func (builder ZREMRANGEBYRANKBuilder) Build() (cmd Command)

type ZREMRANGEBYSCOREBuilder added in v1.2.1

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

func ZRemRangeByScore added in v1.0.0

func ZRemRangeByScore(key string, min string, max string) ZREMRANGEBYSCOREBuilder

func (ZREMRANGEBYSCOREBuilder) Build added in v1.2.1

func (builder ZREMRANGEBYSCOREBuilder) Build() (cmd Command)

type ZREVRANKBuilder added in v1.2.1

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

func ZRevRank added in v1.2.1

func ZRevRank(key string, member string) ZREVRANKBuilder

func (ZREVRANKBuilder) Build added in v1.2.1

func (builder ZREVRANKBuilder) Build() (cmd Command)

func (ZREVRANKBuilder) CacheTTL added in v1.2.1

func (builder ZREVRANKBuilder) CacheTTL(ttl time.Duration) ZREVRANKBuilder

func (ZREVRANKBuilder) Withscores added in v1.2.1

func (builder ZREVRANKBuilder) Withscores() ZREVRANKBuilder

type ZSCANBuilder added in v1.2.1

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

func ZScan added in v1.2.1

func ZScan(key string, cursor uint64) ZSCANBuilder

func (ZSCANBuilder) Build added in v1.2.1

func (builder ZSCANBuilder) Build() (cmd Command)

func (ZSCANBuilder) Count added in v1.2.1

func (builder ZSCANBuilder) Count(count int64) ZSCANBuilder

func (ZSCANBuilder) Match added in v1.2.1

func (builder ZSCANBuilder) Match(pattern string) ZSCANBuilder

type ZSCOREBuilder added in v1.2.1

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

func Zscore added in v1.2.1

func Zscore(key string, member string) ZSCOREBuilder

func (ZSCOREBuilder) Build added in v1.2.1

func (builder ZSCOREBuilder) Build() (cmd Command)

func (ZSCOREBuilder) CacheTTL added in v1.2.1

func (builder ZSCOREBuilder) CacheTTL(ttl time.Duration) ZSCOREBuilder

type ZScore added in v1.2.1

type ZScore struct {
	Member string  `json:"member"`
	Score  float64 `json:"score"`
}

type ZUNIONBuilder added in v1.2.1

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

func ZUnion added in v1.2.1

func ZUnion(numKey int64) ZUNIONBuilder

func (ZUNIONBuilder) AggregateMax added in v1.2.1

func (builder ZUNIONBuilder) AggregateMax() ZUNIONBuilder

func (ZUNIONBuilder) AggregateMin added in v1.2.1

func (builder ZUNIONBuilder) AggregateMin() ZUNIONBuilder

func (ZUNIONBuilder) AggregateSum added in v1.2.1

func (builder ZUNIONBuilder) AggregateSum() ZUNIONBuilder

func (ZUNIONBuilder) Build added in v1.2.1

func (builder ZUNIONBuilder) Build() (cmd Command)

func (ZUNIONBuilder) Key added in v1.2.1

func (builder ZUNIONBuilder) Key(keys ...string) ZUNIONBuilder

func (ZUNIONBuilder) Weights added in v1.2.1

func (builder ZUNIONBuilder) Weights(weights ...int64) ZUNIONBuilder

func (ZUNIONBuilder) Withscores added in v1.2.1

func (builder ZUNIONBuilder) Withscores() ZUNIONBuilder

type ZUNIONSTOREBuilder added in v1.2.1

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

func ZUnionStore added in v1.2.1

func ZUnionStore(dst string, numKey int64) ZUNIONSTOREBuilder

func (ZUNIONSTOREBuilder) AggregateMax added in v1.2.1

func (builder ZUNIONSTOREBuilder) AggregateMax() ZUNIONSTOREBuilder

func (ZUNIONSTOREBuilder) AggregateMin added in v1.2.1

func (builder ZUNIONSTOREBuilder) AggregateMin() ZUNIONSTOREBuilder

func (ZUNIONSTOREBuilder) AggregateSum added in v1.2.1

func (builder ZUNIONSTOREBuilder) AggregateSum() ZUNIONSTOREBuilder

func (ZUNIONSTOREBuilder) Build added in v1.2.1

func (builder ZUNIONSTOREBuilder) Build() (cmd Command)

func (ZUNIONSTOREBuilder) Key added in v1.2.1

func (builder ZUNIONSTOREBuilder) Key(keys ...string) ZUNIONSTOREBuilder

func (ZUNIONSTOREBuilder) Weights added in v1.2.1

func (builder ZUNIONSTOREBuilder) Weights(weights ...int64) ZUNIONSTOREBuilder

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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