redis

package
v0.0.0-...-e917273 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Append

type Append struct {
	Key   string `yaml:"key"`
	Value string `yaml:"value"`
}

Append ...

type BLPop

type BLPop struct {
	Timeout time.Duration `yaml:"timeout"`
	Keys    []string      `yaml:"keys"`
}

BLPop ...

type BRPop

type BRPop struct {
	Timeout time.Duration `yaml:"timeout"`
	Keys    []string      `yaml:"keys"`
}

BRPop ...

type BRPopLPush

type BRPopLPush struct {
	Source  string        `yaml:"source"`
	Dest    string        `yaml:"dest"`
	Timeout time.Duration `yaml:"timeout"`
}

BRPopLPush ...

type BZPopMax

type BZPopMax struct {
	Timeout time.Duration `yaml:"timeout"`
	Keys    []string      `yaml:"keys"`
}

BZPopMax ...

type BZPopMin

type BZPopMin struct {
	Timeout time.Duration `yaml:"timeout"`
	Keys    []string      `yaml:"keys"`
}

BZPopMin ...

type BitCount

type BitCount struct {
	Key      string       `yaml:"key"`
	BitCount *v7.BitCount `yaml:"bitCount"`
}

BitCount ...

type BitField

type BitField struct {
	Key  string   `yaml:"key"`
	Args []string `yaml:"args"`
}

BitField ...

type BitOpAnd

type BitOpAnd struct {
	DestKey string   `yaml:"destKey"`
	Keys    []string `yaml:"keys"`
}

BitOpAnd ...

type BitOpNot

type BitOpNot struct {
	DestKey string `yaml:"destKey"`
	Key     string `yaml:"key"`
}

BitOpNot ...

type BitOpOr

type BitOpOr struct {
	DestKey string   `yaml:"destKey"`
	Keys    []string `yaml:"keys"`
}

BitOpOr ...

type BitOpXor

type BitOpXor struct {
	DestKey string   `yaml:"destKey"`
	Keys    []string `yaml:"keys"`
}

BitOpXor ...

type BitPos

type BitPos struct {
	Key string  `yaml:"key"`
	Bit int64   `yaml:"bit"`
	Pos []int64 `yaml:"pos"`
}

BitPos ...

type ClientKill

type ClientKill struct {
	IPPort string `yaml:"ipPort"`
}

ClientKill ...

type ClientKillByFilter

type ClientKillByFilter struct {
	Keys []string `yaml:"keys"`
}

ClientKillByFilter ...

type ClientPause

type ClientPause struct {
	Dur time.Duration `yaml:"dur"`
}

ClientPause ...

type ClientUnblock

type ClientUnblock struct {
	ID int64 `yaml:"id"`
}

ClientUnblock ...

type ClientUnblockWithError

type ClientUnblockWithError struct {
	ID int64 `yaml:"id"`
}

ClientUnblockWithError ...

type ClusterAddSlots

type ClusterAddSlots struct {
	Slots []int `yaml:"slots"`
}

ClusterAddSlots ...

type ClusterAddSlotsRange

type ClusterAddSlotsRange struct {
	Min int `yaml:"min"`
	Max int `yaml:"max"`
}

ClusterAddSlotsRange ...

type ClusterCountFailureReports

type ClusterCountFailureReports struct {
	NodeID string `yaml:"nodeID"`
}

ClusterCountFailureReports ...

type ClusterCountKeysInSlot

type ClusterCountKeysInSlot struct {
	Slot int `yaml:"slot"`
}

ClusterCountKeysInSlot ...

type ClusterDelSlots

type ClusterDelSlots struct {
	Slots []int `yaml:"slots"`
}

ClusterDelSlots ...

type ClusterDelSlotsRange

type ClusterDelSlotsRange struct {
	Min int `yaml:"min"`
	Max int `yaml:"max"`
}

ClusterDelSlotsRange ...

type ClusterForget

type ClusterForget struct {
	NodeID string `yaml:"nodeID"`
}

ClusterForget ...

type ClusterGetKeysInSlot

type ClusterGetKeysInSlot struct {
	Slot  int `yaml:"slot"`
	Count int `yaml:"count"`
}

ClusterGetKeysInSlot ...

type ClusterKeySlot

type ClusterKeySlot struct {
	Key string `yaml:"key"`
}

ClusterKeySlot ...

type ClusterMeet

type ClusterMeet struct {
	Host string `yaml:"host"`
	Port string `yaml:"port"`
}

ClusterMeet ...

type ClusterReplicate

type ClusterReplicate struct {
	NodeID string `yaml:"nodeID"`
}

ClusterReplicate ...

type ClusterSlaves

type ClusterSlaves struct {
	NodeID string `yaml:"nodeID"`
}

ClusterSlaves ...

type Command

type Command struct {
	Append                     *Append                     `yaml:"append,omitempty"`
	BLPop                      *BLPop                      `yaml:"blPop,omitempty"`
	BRPop                      *BRPop                      `yaml:"brPop,omitempty"`
	BRPopLPush                 *BRPopLPush                 `yaml:"brPopLPush,omitempty"`
	BZPopMax                   *BZPopMax                   `yaml:"bzPopMax,omitempty"`
	BZPopMin                   *BZPopMin                   `yaml:"bzPopMin,omitempty"`
	BgRewriteAOF               *bool                       `yaml:"bgRewriteAof,omitempty"`
	BgSave                     *bool                       `yaml:"bgSave,omitempty"`
	BitCount                   *BitCount                   `yaml:"bitCount,omitempty"`
	BitField                   *BitField                   `yaml:"bitField,omitempty"`
	BitOpAnd                   *BitOpAnd                   `yaml:"bitOpAnd,omitempty"`
	BitOpNot                   *BitOpNot                   `yaml:"bitOpNot,omitempty"`
	BitOpOr                    *BitOpOr                    `yaml:"bitOpOr,omitempty"`
	BitOpXor                   *BitOpXor                   `yaml:"bitOpXor,omitempty"`
	BitPos                     *BitPos                     `yaml:"bitPos,omitempty,omitempty"`
	ClientGetName              *bool                       `yaml:"clientGetName,omitempty"`
	ClientID                   *bool                       `yaml:"clientId,omitempty"`
	ClientKill                 *ClientKill                 `yaml:"clientKill,omitempty"`
	ClientKillByFilter         *ClientKillByFilter         `yaml:"clientKillByFilter,omitempty"`
	ClientList                 *bool                       `yaml:"clientList,omitempty"`
	ClientPause                *ClientPause                `yaml:"clientPause,omitempty"`
	ClientUnblock              *ClientUnblock              `yaml:"clientUnblock,omitempty"`
	ClientUnblockWithError     *ClientUnblockWithError     `yaml:"clientUnblockWithError"`
	Close                      *bool                       `yaml:"close,omitempty"`
	ClusterAddSlots            *ClusterAddSlots            `yaml:"clusterAddSlots,omitempty"`
	ClusterAddSlotsRange       *ClusterAddSlotsRange       `yaml:"clusterAddSlotsRange,omitempty"`
	ClusterCountFailureReports *ClusterCountFailureReports `yaml:"clusterCountFailureReports,omitempty"`
	ClusterCountKeysInSlot     *ClusterCountKeysInSlot     `yaml:"clusterCountKeysInSlot,omitempty"`
	ClusterDelSlots            *ClusterDelSlots            `yaml:"clusterDelSlots,omitempty"`
	ClusterDelSlotsRange       *ClusterDelSlotsRange       `yaml:"clusterDelSlotsRange,omitempty"`
	ClusterFailover            *bool                       `yaml:"clusterFailover,omitempty"`
	ClusterForget              *ClusterForget              `yaml:"clusterForget,omitempty"`
	ClusterGetKeysInSlot       *ClusterGetKeysInSlot       `yaml:"clusterGetKeysInSlot,omitempty"`
	ClusterInfo                *bool                       `yaml:"clusterInfo,omitempty"`
	ClusterKeySlot             *ClusterKeySlot             `yaml:"clusterKeySlot,omitempty"`
	ClusterMeet                *ClusterMeet                `yaml:"clusterMeet,omitempty"`
	ClusterNodes               *bool                       `yaml:"clusterNodes,omitempty"`
	ClusterReplicate           *ClusterReplicate           `yaml:"clusterReplicate,omitempty"`
	ClusterResetHard           *bool                       `yaml:"clusterResetHard,omitempty"`
	ClusterResetSoft           *bool                       `yaml:"clusterResetSoft,omitempty"`
	ClusterSaveConfig          *bool                       `yaml:"clusterSaveConfig,omitempty"`
	ClusterSlaves              *ClusterSlaves              `yaml:"clusterSlaves,omitempty"`
	ClusterSlots               *bool                       `yaml:"clusterSlots,omitempty"`
	Command                    *bool                       `yaml:"command,omitempty"`
	ConfigGet                  *ConfigGet                  `yaml:"configGet,omitempty"`
	ConfigResetStat            *bool                       `yaml:"configResetStat,omitempty"`
	ConfigRewrite              *bool                       `yaml:"configRewrite,omitempty"`
	ConfigSet                  *ConfigSet                  `yaml:"configSet,omitempty"`
	DBSize                     *bool                       `yaml:"dbSize,omitempty"`
	DebugObject                *DebugObject                `yaml:"debugObject,omitempty"`
	Decr                       *Decr                       `yaml:"decr,omitempty"`
	DecrBy                     *DecrBy                     `yaml:"decrBy,omitempty"`
	Del                        *Del                        `yaml:"del,omitempty"`
	Dump                       *Dump                       `yaml:"dump,omitempty"`
	Echo                       *Echo                       `yaml:"echo,omitempty"`
	Exists                     *Exists                     `yaml:"exists,omitempty"`
	Expire                     *Expire                     `yaml:"expire,omitempty"`
	ExpireAt                   *ExpireAt                   `yaml:"expireAt,omitempty"`
	FlushAll                   *bool                       `yaml:"flushAll,omitempty"`
	FlushAllAsync              *bool                       `yaml:"flushAllAsync,omitempty"`
	FlushDB                    *bool                       `yaml:"flushDB,omitempty"`
	FlushDBAsync               *bool                       `yaml:"flushDBAsync,omitempty"`
	GeoAdd                     *GeoAdd                     `yaml:"geoAdd,omitempty"`
	LastSave                   *bool                       `yaml:"lastSave,omitempty"`
	GeoDist                    *GeoDist                    `yaml:"geoDist,omitempty"`
	GeoHash                    *GeoHash                    `yaml:"geoHash,omitempty"`
	GeoPos                     *GeoPos                     `yaml:"geoPos,omitempty"`
	GeoRadius                  *GeoRadius                  `yaml:"geoRadius,omitempty"`
	GeoRadiusByMember          *GeoRadiusByMember          `yaml:"geoRadiusByMember,omitempty"`
	GeoRadiusByMemberStore     *GeoRadiusByMemberStore     `yaml:"geoRadiusByMemberStore,omitempty"`
	GeoRadiusStore             *GeoRadiusStore             `yaml:"geoRadiusStore,omitempty"`
	Get                        *Get                        `yaml:"get,omitempty"`
	GetBit                     *GetBit                     `yaml:"getBit,omitempty"`
	GetRange                   *GetRange                   `yaml:"getRange,omitempty"`
	GetSet                     *GetSet                     `yaml:"getSet,omitempty"`
	HDel                       *HDel                       `yaml:"hDel,omitempty"`
	HExists                    *HExists                    `yaml:"hExists,omitempty"`
	HGet                       *HGet                       `yaml:"hGet,omitempty"`
	HGetAll                    *HGetAll                    `yaml:"hGetAll,omitempty"`
	HIncrBy                    *HIncrBy                    `yaml:"hIncrBy,omitempty"`
	HIncrByFloat               *HIncrByFloat               `yaml:"hIncrByFloat,omitempty"`
	HKeys                      *HKeys                      `yaml:"hKeys,omitempty"`
	HLen                       *HLen                       `yaml:"hLen,omitempty"`
	HMGet                      *HMGet                      `yaml:"hmGet,omitempty"`
	HScan                      *HScan                      `yaml:"hScan,omitempty"`
	HVals                      *HVals                      `yaml:"hVals,omitempty"`
	Incr                       *Incr                       `yaml:"incr,omitempty"`
	IncrBy                     *IncrBy                     `yaml:"incrBy,omitempty"`
	IncrByFloat                *IncrByFloat                `yaml:"incrByFloat,omitempty"`
	Info                       *Info                       `yaml:"info,omitempty"`
	Keys                       *Keys                       `yaml:"keys,omitempty"`
	LIndex                     *LIndex                     `yaml:"lIndex,omitempty"`
	LLen                       *LLen                       `yaml:"lLen,omitempty"`
	LPop                       *LPop                       `yaml:"lPop,omitempty"`
	LRange                     *LRange                     `yaml:"lRange,omitempty"`
	LTrim                      *LTrim                      `yaml:"lTrim,omitempty"`
	MGet                       *MGet                       `yaml:"mGet,omitempty"`
	MemoryUsage                *MemoryUsage                `yaml:"memoryUsage,omitempty"`
	Migrate                    *Migrate                    `yaml:"migrate,omitempty"`
	Move                       *Move                       `yaml:"move,omitempty"`
	ObjectEncoding             *ObjectEncoding             `yaml:"objectEncoding,omitempty"`
	ObjectIdleTime             *ObjectIdleTime             `yaml:"objectIdleTime,omitempty"`
	ObjectRefCount             *ObjectRefCount             `yaml:"objectRefCount,omitempty"`
	PExpire                    *PExpire                    `yaml:"pExpire,omitempty"`
	PExpireAt                  *PExpireAt                  `yaml:"pExpireAt,omitempty"`
	PFCount                    *PFCount                    `yaml:"pfCount,omitempty"`
	PFMerge                    *PFMerge                    `yaml:"pfMerge,omitempty"`
	PTTL                       *PTTL                       `yaml:"pttl,omitempty"`
	Persist                    *Persist                    `yaml:"persist,omitempty"`
	Ping                       *bool                       `yaml:"ping,omitempty"`
	PubSubChannels             *PubSubChannels             `yaml:"pubSubChannels,omitempty"`
	PubSubNumPat               *bool                       `yaml:"pubSubNumPat,omitempty"`
	PubSubNumSub               *PubSubNumSub               `yaml:"pubSubNumSub,omitempty"`
	Publish                    *Publish                    `yaml:"publish,omitempty"`
	Quit                       *bool                       `yaml:"quit,omitempty"`
	RPop                       *RPop                       `yaml:"rPop,omitempty"`
	RPopLPush                  *RPopLPush                  `yaml:"rPopLPush,omitempty"`
	RandomKey                  *bool                       `yaml:"randomKey,omitempty"`
	ReadOnly                   *bool                       `yaml:"readOnly,omitempty"`
	ReadWrite                  *bool                       `yaml:"readWrite,omitempty"`
	Rename                     *Rename                     `yaml:"rename,omitempty"`
	RenameNX                   *RenameNX                   `yaml:"renameNX,omitempty"`
	Restore                    *Restore                    `yaml:"restore,omitempty"`
	RestoreReplace             *RestoreReplace             `yaml:"restoreReplace,omitempty"`
	SCard                      *SCard                      `yaml:"sCard,omitempty"`
	SDiff                      *SDiff                      `yaml:"sDiff,omitempty"`
	SDiffStore                 *SDiffStore                 `yaml:"sDiffStore,omitempty"`
	SInter                     *SInter                     `yaml:"sInter,omitempty"`
	SInterStore                *SInterStore                `yaml:"sInterStore,omitempty"`
	SMembers                   *SMembers                   `yaml:"sMembers,omitempty"`
	SMembersMap                *SMembersMap                `yaml:"sMembersMap,omitempty"`
	SPop                       *SPop                       `yaml:"sPop,omitempty"`
	SPopN                      *SPopN                      `yaml:"sPopN,omitempty"`
	SRandMember                *SRandMember                `yaml:"sRandMember,omitempty"`
	SRandMemberN               *SRandMemberN               `yaml:"sRandMemberN,omitempty"`
	SRem                       *SRem                       `yaml:"sRem,omitempty"`
	SScan                      *SScan                      `yaml:"sScan,omitempty"`
	SUnion                     *SUnion                     `yaml:"sUnion,omitempty"`
	SUnionStore                *SUnionStore                `yaml:"sUnionStore,omitempty"`
	Save                       *bool                       `yaml:"save,omitempty"`
	Scan                       *Scan                       `yaml:"scan,omitempty"`
	ScriptExists               *ScriptExists               `yaml:"scriptExists,omitempty"`
	ScriptFlush                *bool                       `yaml:"scriptFlush,omitempty"`
	ScriptKill                 *bool                       `yaml:"scriptKill,omitempty"`
	Set                        *Set                        `yaml:"set,omitempty"`
	SetBit                     *SetBit                     `yaml:"setBit,omitempty"`
	SetRange                   *SetRange                   `yaml:"setRange,omitempty"`
	Shutdown                   *bool                       `yaml:"shutdown,omitempty"`
	ShutdownNoSave             *bool                       `yaml:"shutdownNoSave,omitempty"`
	ShutdownSave               *bool                       `yaml:"shutdownSave,omitempty"`
	SlaveOf                    *SlaveOf                    `yaml:"slaveOf,omitempty"`
	Sort                       *Sort                       `yaml:"sort,omitempty"`
	SortInterfaces             *SortInterfaces             `yaml:"sortInterfaces,omitempty"`
	SortStore                  *SortStore                  `yaml:"sortStore,omitempty"`
	TTL                        *TTL                        `yaml:"ttl,omitempty"`
	Time                       *bool                       `yaml:"time,omitempty"`
	Touch                      *Touch                      `yaml:"touch,omitempty"`
	Type                       *Type                       `yaml:"type,omitempty"`
	Unlink                     *Unlink                     `yaml:"unlink,omitempty"`
	Wait                       *Wait                       `yaml:"wait,omitempty"`
	XAck                       *XAck                       `yaml:"xAck,omitempty"`
	XAdd                       *XAdd                       `yaml:"xAdd,omitempty"`
	XClaim                     *XClaim                     `yaml:"xClaim,omitempty"`
	XClaimJustID               *XClaimJustID               `yaml:"xClaimJustID,omitempty"`
	XDel                       *XDel                       `yaml:"xDel,omitempty"`
	XGroupCreate               *XGroupCreate               `yaml:"xGroupCreate,omitempty"`
	XGroupCreateMkStream       *XGroupCreateMkStream       `yaml:"xGroupCreateMkStream,omitempty"`
	XGroupDelConsumer          *XGroupDelConsumer          `yaml:"xGroupDelConsumer,omitempty"`
	XGroupDestroy              *XGroupDestroy              `yaml:"xGroupDestroy,omitempty"`
	XGroupSetID                *XGroupSetID                `yaml:"xGroupSetID,omitempty"`
	XInfoGroups                *XInfoGroups                `yaml:"xInfoGroups,omitempty"`
	XLen                       *XLen                       `yaml:"xLen,omitempty"`
	XPending                   *XPending                   `yaml:"xPending,omitempty"`
	XPendingExt                *XPendingExt                `yaml:"xPendingExt,omitempty"`
	XRange                     *XRange                     `yaml:"xRange,omitempty"`
	XRangeN                    *XRangeN                    `yaml:"xRangeN,omitempty"`
	XRead                      *XRead                      `yaml:"xRead,omitempty"`
	XReadGroup                 *XReadGroup                 `yaml:"xReadGroup,omitempty"`
	XReadStreams               *XReadStreams               `yaml:"xReadStreams,omitempty"`
	XRevRange                  *XRevRange                  `yaml:"xRevRange,omitempty"`
	XRevRangeN                 *XRevRangeN                 `yaml:"xRevRangeN,omitempty"`
	XTrim                      *XTrim                      `yaml:"xTrim,omitempty"`
	XTrimApprox                *XTrimApprox                `yaml:"xTrimApprox,omitempty"`
	ZAdd                       *ZAdd                       `yaml:"zAdd,omitempty"`
	ZAddCh                     *ZAddCh                     `yaml:"zAddCh,omitempty"`
	ZAddNX                     *ZAddNX                     `yaml:"zAddNX,omitempty"`
	ZAddNXCh                   *ZAddNXCh                   `yaml:"zAddNXCh,omitempty"`
	ZAddXX                     *ZAddXX                     `yaml:"zAddXX,omitempty"`
	ZAddXXCh                   *ZAddXXCh                   `yaml:"zAddXXCh,omitempty"`
	ZCard                      *ZCard                      `yaml:"zCard,omitempty"`
	ZCount                     *ZCount                     `yaml:"zCount,omitempty"`
	ZIncr                      *ZIncr                      `yaml:"zIncr,omitempty"`
	ZIncrBy                    *ZIncrBy                    `yaml:"zIncrBy,omitempty"`
	ZIncrNX                    *ZIncrNX                    `yaml:"zIncrNX,omitempty"`
	ZIncrXX                    *ZIncrXX                    `yaml:"zIncrXX,omitempty"`
	ZInterStore                *ZInterStore                `yaml:"zInterStore,omitempty"`
	ZLexCount                  *ZLexCount                  `yaml:"zLexCount,omitempty"`
	ZPopMax                    *ZPopMax                    `yaml:"zPopMax,omitempty"`
	ZPopMin                    *ZPopMin                    `yaml:"zPopMin,omitempty"`
	ZRange                     *ZRange                     `yaml:"zRange,omitempty"`
	ZRangeByLex                *ZRangeByLex                `yaml:"zRangeByLex,omitempty"`
	ZRangeByScore              *ZRangeByScore              `yaml:"zRangeByScore,omitempty"`
	ZRangeByScoreWithScores    *ZRangeByScoreWithScores    `yaml:"zRangeByScoreWithScores,omitempty"`
	ZRangeWithScores           *ZRangeWithScores           `yaml:"zRangeWithScores,omitempty"`
	ZRank                      *ZRank                      `yaml:"zRank,omitempty"`
	ZRem                       *ZRem                       `yaml:"zRem,omitempty"`
	ZRemRangeByLex             *ZRemRangeByLex             `yaml:"zRemRangeByLex,omitempty"`
	ZRemRangeByRank            *ZRemRangeByRank            `yaml:"zRemRangeByRank,omitempty"`
	ZRemRangeByScore           *ZRemRangeByScore           `yaml:"zRemRangeByScore,omitempty"`
	ZRevRange                  *ZRevRange                  `yaml:"zRevRange,omitempty"`
	ZRevRangeByLex             *ZRevRangeByLex             `yaml:"zRevRangeByLex,omitempty"`
	ZRevRangeByScore           *ZRevRangeByScore           `yaml:"zRevRangeByScore,omitempty"`
	ZRevRangeByScoreWithScores *ZRevRangeByScoreWithScores `yaml:"zRevRangeByScoreWithScores,omitempty"`
	ZRevRangeWithScores        *ZRevRangeWithScores        `yaml:"zRevRangeWithScores,omitempty"`
	ZRevRank                   *ZRevRank                   `yaml:"zRevRank,omitempty"`
	ZScan                      *ZScan                      `yaml:"zScan,omitempty"`
	ZScore                     *ZScore                     `yaml:"zScore,omitempty"`
	ZUnionStore                *ZUnionStore                `yaml:"zUnionStore,omitempty"`
}

Command is a Redis command.

type Config

type Config struct {
	Network            string         `yaml:"network,omitempty"`
	Addr               string         `yaml:"addr"`
	DB                 int            `yaml:"db"`
	Password           string         `yaml:"password,omitempty"`
	PoolSize           *int           `yaml:"poolSize,omitempty"`
	MaxRetries         *int           `yaml:"maxRetries,omitempty"`
	MinRetryBackoff    *time.Duration `yaml:"minRetryBackoff,omitempty"`
	MaxRetryBackoff    *time.Duration `yaml:"maxRetryBackoff,omitempty"`
	DialTimeout        *time.Duration `yaml:"dialTimeout,omitempty"`
	ReadTimeout        *time.Duration `yaml:"readTimeout,omitempty"`
	WriteTimeout       *time.Duration `yaml:"writeTimeout,omitempty"`
	MaxConnAge         *time.Duration `yaml:"maxConnAge,omitempty"`
	PoolTimeout        *time.Duration `yaml:"poolTimeout,omitempty"`
	IdleTimeout        *time.Duration `yaml:"idleTimeout,omitempty"`
	IdleCheckFrequency *time.Duration `yaml:"idleCheckFrequency,omitempty"`
	Commands           []*Command     `yaml:"commands"`
}

Config is a config for a Redis stage.

func (*Config) Client

func (c *Config) Client() *v7.Client

Client returns a redis client.

func (*Config) Execute

func (c *Config) Execute(ctx context.Context) error

Execute is used to execute the config.

type ConfigGet

type ConfigGet struct {
	Parameter string `yaml:"parameter"`
}

ConfigGet ...

type ConfigSet

type ConfigSet struct {
	Parameter string `yaml:"parameter"`
	Value     string `yaml:"value"`
}

ConfigSet ...

type DebugObject

type DebugObject struct {
	Key string `yaml:"key"`
}

DebugObject ...

type Decr

type Decr struct {
	Key string `yaml:"key"`
}

Decr ...

type DecrBy

type DecrBy struct {
	Key       string `yaml:"key"`
	Decrement int64  `yaml:"decrement"`
}

DecrBy ...

type Del

type Del struct {
	Keys []string `yaml:"keys"`
}

Del ...

type Dump

type Dump struct {
	Key string `yaml:"key"`
}

Dump ...

type Echo

type Echo struct {
	Message string `yaml:"message"`
}

Echo ...

type Exists

type Exists struct {
	Keys []string `yaml:"keys"`
}

Exists ...

type Expire

type Expire struct {
	Key        string        `yaml:"key"`
	Expiration time.Duration `yaml:"expiration"`
}

Expire ...

type ExpireAt

type ExpireAt struct {
	Key  string    `yaml:"key"`
	Time time.Time `yaml:"time"`
}

ExpireAt ...

type GeoAdd

type GeoAdd struct {
	Key         string            `yaml:"key"`
	GeoLocation []*v7.GeoLocation `yaml:"geoLocation"`
}

GeoAdd ...

type GeoDist

type GeoDist struct {
	Key     string `yaml:"key"`
	Member1 string `yaml:"member1"`
	Member2 string `yaml:"member2"`
	Unit    string `yaml:"unit"`
}

GeoDist ...

type GeoHash

type GeoHash struct {
	Key     string   `yaml:"key"`
	Members []string `yaml:"members"`
}

GeoHash ...

type GeoPos

type GeoPos struct {
	Key     string   `yaml:"key"`
	Members []string `yaml:"members"`
}

GeoPos ...

type GeoRadius

type GeoRadius struct {
	Key       string            `yaml:"key"`
	Longitude float64           `yaml:"longitude"`
	Latitude  float64           `yaml:"latitude"`
	Query     v7.GeoRadiusQuery `yaml:"query"`
}

GeoRadius ...

type GeoRadiusByMember

type GeoRadiusByMember struct {
	Key    string             `yaml:"key"`
	Member string             `yaml:"member"`
	Query  *v7.GeoRadiusQuery `yaml:"query"`
}

GeoRadiusByMember ...

type GeoRadiusByMemberStore

type GeoRadiusByMemberStore struct {
	Key    string             `yaml:"key"`
	Member string             `yaml:"member"`
	Query  *v7.GeoRadiusQuery `yaml:"query"`
}

GeoRadiusByMemberStore ...

type GeoRadiusStore

type GeoRadiusStore struct {
	Key       string             `yaml:"key"`
	Longitude float64            `yaml:"longitude"`
	Latitude  float64            `yaml:"latitude"`
	Query     *v7.GeoRadiusQuery `yaml:"query"`
}

GeoRadiusStore ...

type Get

type Get struct {
	Key string `yaml:"key"`
}

Get ...

type GetBit

type GetBit struct {
	Key    string `yaml:"key"`
	Offset int64  `yaml:"offset"`
}

GetBit ...

type GetRange

type GetRange struct {
	Key   string `yaml:"key"`
	Start int64  `yaml:"start"`
	End   int64  `yaml:"end"`
}

GetRange ...

type GetSet

type GetSet struct {
	Key   string `yaml:"key"`
	Value string `yaml:"value"`
}

GetSet ...

type HDel

type HDel struct {
	Key    string   `yaml:"key"`
	Fields []string `yaml:"fields"`
}

HDel ...

type HExists

type HExists struct {
	Key   string `yaml:"key"`
	Field string `yaml:"field"`
}

HExists ...

type HGet

type HGet struct {
	Key   string `yaml:"key"`
	Field string `yaml:"field"`
}

HGet ...

type HGetAll

type HGetAll struct {
	Key string `yaml:"key"`
}

HGetAll ...

type HIncrBy

type HIncrBy struct {
	Key   string `yaml:"key"`
	Field string `yaml:"field"`
	Incr  int64  `yaml:"incr"`
}

HIncrBy ...

type HIncrByFloat

type HIncrByFloat struct {
	Key   string  `yaml:"key"`
	Field string  `yaml:"field"`
	Incr  float64 `yaml:"incr"`
}

HIncrByFloat ...

type HKeys

type HKeys struct {
	Key string `yaml:"key"`
}

HKeys ...

type HLen

type HLen struct {
	Key string `yaml:"key"`
}

HLen ...

type HMGet

type HMGet struct {
	Key    string   `yaml:"key"`
	Fields []string `yaml:"fields"`
}

HMGet ...

type HScan

type HScan struct {
	Key    string `yaml:"key"`
	Cursor uint64 `yaml:"cursor"`
	Match  string `yaml:"match"`
	Count  int64  `yaml:"count"`
}

HScan ...

type HVals

type HVals struct {
	Key string `yaml:"key"`
}

HVals ...

type Incr

type Incr struct {
	Key string `yaml:"key"`
}

Incr ...

type IncrBy

type IncrBy struct {
	Key   string `yaml:"key"`
	Value int64  `yaml:"value"`
}

IncrBy ...

type IncrByFloat

type IncrByFloat struct {
	Key   string  `yaml:"key"`
	Value float64 `yaml:"value"`
}

IncrByFloat ...

type Info

type Info struct {
	Section []string `yaml:"section"`
}

Info ...

type Keys

type Keys struct {
	Pattern string `yaml:"pattern"`
}

Keys ...

type LIndex

type LIndex struct {
	Key   string `yaml:"key"`
	Index int64  `yaml:"index"`
}

LIndex ...

type LLen

type LLen struct {
	Key string `yaml:"key"`
}

LLen ...

type LPop

type LPop struct {
	Key string `yaml:"key"`
}

LPop ...

type LRange

type LRange struct {
	Key   string `yaml:"key"`
	Start int64  `yaml:"start"`
	Stop  int64  `yaml:"stop"`
}

LRange ...

type LTrim

type LTrim struct {
	Key   string `yaml:"key"`
	Start int64  `yaml:"start"`
	Stop  int64  `yaml:"stop"`
}

LTrim ...

type MGet

type MGet struct {
	Keys []string `yaml:"keys"`
}

MGet ...

type MemoryUsage

type MemoryUsage struct {
	Key     string `yaml:"key"`
	Samples []int  `yaml:"samples"`
}

MemoryUsage ...

type Migrate

type Migrate struct {
	Host    string        `yaml:"host"`
	Port    string        `yaml:"port"`
	Key     string        `yaml:"key"`
	Db      int           `yaml:"db"`
	Timeout time.Duration `yaml:"timeout"`
}

Migrate ...

type Move

type Move struct {
	Key string `yaml:"key"`
	Db  int    `yaml:"db"`
}

Move ...

type ObjectEncoding

type ObjectEncoding struct {
	Key string `yaml:"key"`
}

ObjectEncoding ...

type ObjectIdleTime

type ObjectIdleTime struct {
	Key string `yaml:"key"`
}

ObjectIdleTime ...

type ObjectRefCount

type ObjectRefCount struct {
	Key string `yaml:"key"`
}

ObjectRefCount ...

type PExpire

type PExpire struct {
	Key        string        `yaml:"key"`
	Expiration time.Duration `yaml:"expiration"`
}

PExpire ...

type PExpireAt

type PExpireAt struct {
	Key  string    `yaml:"key"`
	Time time.Time `yaml:"time"`
}

PExpireAt ...

type PFCount

type PFCount struct {
	Keys []string `yaml:"keys"`
}

PFCount ...

type PFMerge

type PFMerge struct {
	Dest string   `yaml:"dest"`
	Keys []string `yaml:"keys"`
}

PFMerge ...

type PTTL

type PTTL struct {
	Key string `yaml:"key"`
}

PTTL ...

type Persist

type Persist struct {
	Key string `yaml:"key"`
}

Persist ...

type PubSubChannels

type PubSubChannels struct {
	Pattern string `yaml:"pattern"`
}

PubSubChannels ...

type PubSubNumSub

type PubSubNumSub struct {
	Channels []string `yaml:"channels"`
}

PubSubNumSub ...

type Publish

type Publish struct {
	Channel string `yaml:"channel"`
	Message string `yaml:"message"`
}

Publish ...

type RPop

type RPop struct {
	Key string `yaml:"key"`
}

RPop ...

type RPopLPush

type RPopLPush struct {
	Source      string `yaml:"source"`
	Destination string `yaml:"destination"`
}

RPopLPush ...

type Rename

type Rename struct {
	Key    string `yaml:"key"`
	Newkey string `yaml:"newkey"`
}

Rename ...

type RenameNX

type RenameNX struct {
	Key    string `yaml:"key"`
	Newkey string `yaml:"newkey"`
}

RenameNX ...

type Restore

type Restore struct {
	Key   string        `yaml:"key"`
	TTL   time.Duration `yaml:"ttl"`
	Value string        `yaml:"value"`
}

Restore ...

type RestoreReplace

type RestoreReplace struct {
	Key   string        `yaml:"key"`
	TTL   time.Duration `yaml:"ttl"`
	Value string        `yaml:"value"`
}

RestoreReplace ...

type SCard

type SCard struct {
	Key string `yaml:"key"`
}

SCard ...

type SDiff

type SDiff struct {
	Keys []string `yaml:"keys"`
}

SDiff ...

type SDiffStore

type SDiffStore struct {
	Destination string   `yaml:"destination"`
	Keys        []string `yaml:"keys"`
}

SDiffStore ...

type SInter

type SInter struct {
	Keys []string `yaml:"keys"`
}

SInter ...

type SInterStore

type SInterStore struct {
	Destination string   `yaml:"destination"`
	Keys        []string `yaml:"keys"`
}

SInterStore ...

type SMembers

type SMembers struct {
	Key string `yaml:"key"`
}

SMembers ...

type SMembersMap

type SMembersMap struct {
	Key string `yaml:"key"`
}

SMembersMap ...

type SPop

type SPop struct {
	Key string `yaml:"key"`
}

SPop ...

type SPopN

type SPopN struct {
	Key   string `yaml:"key"`
	Count int64  `yaml:"count"`
}

SPopN ...

type SRandMember

type SRandMember struct {
	Key string `yaml:"key"`
}

SRandMember ...

type SRandMemberN

type SRandMemberN struct {
	Key   string `yaml:"key"`
	Count int64  `yaml:"count"`
}

SRandMemberN ...

type SRem

type SRem struct {
	Key     string   `yaml:"key"`
	Members []string `yaml:"members"`
}

SRem ...

type SScan

type SScan struct {
	Key    string `yaml:"key"`
	Cursor uint64 `yaml:"cursor"`
	Match  string `yaml:"match"`
	Count  int64  `yaml:"count"`
}

SScan ...

type SUnion

type SUnion struct {
	Keys []string `yaml:"keys"`
}

SUnion ...

type SUnionStore

type SUnionStore struct {
	Destination string   `yaml:"destination"`
	Keys        []string `yaml:"keys"`
}

SUnionStore ...

type Scan

type Scan struct {
	Cursor uint64 `yaml:"cursor"`
	Match  string `yaml:"match"`
	Count  int64  `yaml:"count"`
}

Scan ...

type ScriptExists

type ScriptExists struct {
	Hashes []string `yaml:"hashes"`
}

ScriptExists ...

type Set

type Set struct {
	Key        string        `yaml:"key"`
	Value      string        `yaml:"value"`
	Expiration time.Duration `yaml:"expiration"`
}

Set ...

type SetBit

type SetBit struct {
	Key    string `yaml:"key"`
	Offset int64  `yaml:"offset"`
	Value  int    `yaml:"value"`
}

SetBit ...

type SetRange

type SetRange struct {
	Key    string `yaml:"key"`
	Offset int64  `yaml:"offset"`
	Value  string `yaml:"value"`
}

SetRange ...

type SlaveOf

type SlaveOf struct {
	Host string `yaml:"host"`
	Port string `yaml:"port"`
}

SlaveOf ...

type Sort

type Sort struct {
	Key  string   `yaml:"key"`
	Sort *v7.Sort `yaml:"sort"`
}

Sort ...

type SortInterfaces

type SortInterfaces struct {
	Key  string   `yaml:"key"`
	Sort *v7.Sort `yaml:"sort"`
}

SortInterfaces ...

type SortStore

type SortStore struct {
	Key   string   `yaml:"key"`
	Store string   `yaml:"store"`
	Sort  *v7.Sort `yaml:"sort"`
}

SortStore ...

type StrLen

type StrLen struct {
	Key string `yaml:"key"`
}

StrLen ...

type TTL

type TTL struct {
	Key string `yaml:"key"`
}

TTL ...

type Touch

type Touch struct {
	Keys []string `yaml:"keys"`
}

Touch ...

type Type

type Type struct {
	Key string `yaml:"key"`
}

Type ...

type Unlink struct {
	Keys []string `yaml:"keys"`
}

Unlink ...

type Wait

type Wait struct {
	NumSlaves int           `yaml:"numSlaves"`
	Timeout   time.Duration `yaml:"timeout"`
}

Wait ...

type XAck

type XAck struct {
	Stream string   `yaml:"stream"`
	Group  string   `yaml:"group"`
	Ids    []string `yaml:"ids"`
}

XAck ...

type XAdd

type XAdd struct {
	A *v7.XAddArgs `yaml:"a"`
}

XAdd ...

type XClaim

type XClaim struct {
	A *v7.XClaimArgs `yaml:"a"`
}

XClaim ...

type XClaimJustID

type XClaimJustID struct {
	A *v7.XClaimArgs `yaml:"a"`
}

XClaimJustID ...

type XDel

type XDel struct {
	Stream string   `yaml:"stream"`
	Ids    []string `yaml:"ids"`
}

XDel ...

type XGroupCreate

type XGroupCreate struct {
	Stream string `yaml:"stream"`
	Group  string `yaml:"group"`
	Start  string `yaml:"start"`
}

XGroupCreate ...

type XGroupCreateMkStream

type XGroupCreateMkStream struct {
	Stream string `yaml:"stream"`
	Group  string `yaml:"group"`
	Start  string `yaml:"start"`
}

XGroupCreateMkStream ...

type XGroupDelConsumer

type XGroupDelConsumer struct {
	Stream   string `yaml:"stream"`
	Group    string `yaml:"group"`
	Consumer string `yaml:"consumer"`
}

XGroupDelConsumer ...

type XGroupDestroy

type XGroupDestroy struct {
	Stream string `yaml:"stream"`
	Group  string `yaml:"group"`
}

XGroupDestroy ...

type XGroupSetID

type XGroupSetID struct {
	Stream string `yaml:"stream"`
	Group  string `yaml:"group"`
	Start  string `yaml:"start"`
}

XGroupSetID ...

type XInfoGroups

type XInfoGroups struct {
	Key string `yaml:"key"`
}

XInfoGroups ...

type XLen

type XLen struct {
	Stream string `yaml:"stream"`
}

XLen ...

type XPending

type XPending struct {
	Stream string `yaml:"stream"`
	Group  string `yaml:"group"`
}

XPending ...

type XPendingExt

type XPendingExt struct {
	A *v7.XPendingExtArgs `yaml:"a"`
}

XPendingExt ...

type XRange

type XRange struct {
	Stream string `yaml:"stream"`
	Start  string `yaml:"start"`
	Stop   string `yaml:"stop"`
}

XRange ...

type XRangeN

type XRangeN struct {
	Stream string `yaml:"stream"`
	Start  string `yaml:"start"`
	Stop   string `yaml:"stop"`
	Count  int64  `yaml:"count"`
}

XRangeN ...

type XRead

type XRead struct {
	A *v7.XReadArgs `yaml:"a"`
}

XRead ...

type XReadGroup

type XReadGroup struct {
	A *v7.XReadGroupArgs `yaml:"a"`
}

XReadGroup ...

type XReadStreams

type XReadStreams struct {
	Streams []string `yaml:"streams"`
}

XReadStreams ...

type XRevRange

type XRevRange struct {
	Stream string `yaml:"stream"`
	Start  string `yaml:"start"`
	Stop   string `yaml:"stop"`
}

XRevRange ...

type XRevRangeN

type XRevRangeN struct {
	Stream string `yaml:"stream"`
	Start  string `yaml:"start"`
	Stop   string `yaml:"stop"`
	Count  int64  `yaml:"count"`
}

XRevRangeN ...

type XTrim

type XTrim struct {
	Key    string `yaml:"key"`
	MaxLen int64  `yaml:"maxLen"`
}

XTrim ...

type XTrimApprox

type XTrimApprox struct {
	Key    string `yaml:"key"`
	MaxLen int64  `yaml:"maxLen"`
}

XTrimApprox ...

type ZAdd

type ZAdd struct {
	Key     string  `yaml:"key"`
	Members []*v7.Z `yaml:"members"`
}

ZAdd ...

type ZAddCh

type ZAddCh struct {
	Key     string  `yaml:"key"`
	Members []*v7.Z `yaml:"members"`
}

ZAddCh ...

type ZAddNX

type ZAddNX struct {
	Key     string  `yaml:"key"`
	Members []*v7.Z `yaml:"members"`
}

ZAddNX ...

type ZAddNXCh

type ZAddNXCh struct {
	Key     string  `yaml:"key"`
	Members []*v7.Z `yaml:"members"`
}

ZAddNXCh ...

type ZAddXX

type ZAddXX struct {
	Key     string  `yaml:"key"`
	Members []*v7.Z `yaml:"members"`
}

ZAddXX ...

type ZAddXXCh

type ZAddXXCh struct {
	Key     string  `yaml:"key"`
	Members []*v7.Z `yaml:"members"`
}

ZAddXXCh ...

type ZCard

type ZCard struct {
	Key string `yaml:"key"`
}

ZCard ...

type ZCount

type ZCount struct {
	Key string `yaml:"key"`
	Min string `yaml:"min"`
	Max string `yaml:"max"`
}

ZCount ...

type ZIncr

type ZIncr struct {
	Key    string `yaml:"key"`
	Member *v7.Z  `yaml:"member"`
}

ZIncr ...

type ZIncrBy

type ZIncrBy struct {
	Key       string  `yaml:"key"`
	Increment float64 `yaml:"increment"`
	Member    string  `yaml:"member"`
}

ZIncrBy ...

type ZIncrNX

type ZIncrNX struct {
	Key    string `yaml:"key"`
	Member *v7.Z  `yaml:"member"`
}

ZIncrNX ...

type ZIncrXX

type ZIncrXX struct {
	Key    string `yaml:"key"`
	Member *v7.Z  `yaml:"member"`
}

ZIncrXX ...

type ZInterStore

type ZInterStore struct {
	Destination string     `yaml:"destination"`
	Store       *v7.ZStore `yaml:"store"`
}

ZInterStore ...

type ZLexCount

type ZLexCount struct {
	Key string `yaml:"key"`
	Min string `yaml:"min"`
	Max string `yaml:"max"`
}

ZLexCount ...

type ZPopMax

type ZPopMax struct {
	Key   string  `yaml:"key"`
	Count []int64 `yaml:"count"`
}

ZPopMax ...

type ZPopMin

type ZPopMin struct {
	Key   string  `yaml:"key"`
	Count []int64 `yaml:"count"`
}

ZPopMin ...

type ZRange

type ZRange struct {
	Key   string `yaml:"key"`
	Start int64  `yaml:"start"`
	Stop  int64  `yaml:"stop"`
}

ZRange ...

type ZRangeByLex

type ZRangeByLex struct {
	Key string       `yaml:"key"`
	Opt *v7.ZRangeBy `yaml:"opt"`
}

ZRangeByLex ...

type ZRangeByScore

type ZRangeByScore struct {
	Key string       `yaml:"key"`
	Opt *v7.ZRangeBy `yaml:"opt"`
}

ZRangeByScore ...

type ZRangeByScoreWithScores

type ZRangeByScoreWithScores struct {
	Key string       `yaml:"key"`
	Opt *v7.ZRangeBy `yaml:"opt"`
}

ZRangeByScoreWithScores ...

type ZRangeWithScores

type ZRangeWithScores struct {
	Key   string `yaml:"key"`
	Start int64  `yaml:"start"`
	Stop  int64  `yaml:"stop"`
}

ZRangeWithScores ...

type ZRank

type ZRank struct {
	Key    string `yaml:"key"`
	Member string `yaml:"member"`
}

ZRank ...

type ZRem

type ZRem struct {
	Key     string   `yaml:"key"`
	Members []string `yaml:"members"`
}

ZRem ...

type ZRemRangeByLex

type ZRemRangeByLex struct {
	Key string `yaml:"key"`
	Min string `yaml:"min"`
	Max string `yaml:"max"`
}

ZRemRangeByLex ...

type ZRemRangeByRank

type ZRemRangeByRank struct {
	Key   string `yaml:"key"`
	Start int64  `yaml:"start"`
	Stop  int64  `yaml:"stop"`
}

ZRemRangeByRank ...

type ZRemRangeByScore

type ZRemRangeByScore struct {
	Key string `yaml:"key"`
	Min string `yaml:"min"`
	Max string `yaml:"max"`
}

ZRemRangeByScore ...

type ZRevRange

type ZRevRange struct {
	Key   string `yaml:"key"`
	Start int64  `yaml:"start"`
	Stop  int64  `yaml:"stop"`
}

ZRevRange ...

type ZRevRangeByLex

type ZRevRangeByLex struct {
	Key string       `yaml:"key"`
	Opt *v7.ZRangeBy `yaml:"opt"`
}

ZRevRangeByLex ...

type ZRevRangeByScore

type ZRevRangeByScore struct {
	Key string       `yaml:"key"`
	Opt *v7.ZRangeBy `yaml:"opt"`
}

ZRevRangeByScore ...

type ZRevRangeByScoreWithScores

type ZRevRangeByScoreWithScores struct {
	Key string       `yaml:"key"`
	Opt *v7.ZRangeBy `yaml:"opt"`
}

ZRevRangeByScoreWithScores ...

type ZRevRangeWithScores

type ZRevRangeWithScores struct {
	Key   string `yaml:"key"`
	Start int64  `yaml:"start"`
	Stop  int64  `yaml:"stop"`
}

ZRevRangeWithScores ...

type ZRevRank

type ZRevRank struct {
	Key    string `yaml:"key"`
	Member string `yaml:"member"`
}

ZRevRank ...

type ZScan

type ZScan struct {
	Key    string `yaml:"key"`
	Cursor uint64 `yaml:"cursor"`
	Match  string `yaml:"match"`
	Count  int64  `yaml:"count"`
}

ZScan ...

type ZScore

type ZScore struct {
	Key    string `yaml:"key"`
	Member string `yaml:"member"`
}

ZScore ...

type ZUnionStore

type ZUnionStore struct {
	Dest  string     `yaml:"dest"`
	Store *v7.ZStore `yaml:"store"`
}

ZUnionStore ...

Jump to

Keyboard shortcuts

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