hash

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HDel

type HDel struct {
	redis.BaseCmd
	// contains filtered or unexported fields
}

Deletes one or more fields and their values from a hash. Deletes the hash if no fields remain. HDEL key field [field ...] https://redis.io/commands/hdel

func ParseHDel

func ParseHDel(b redis.BaseCmd) (HDel, error)

func (HDel) Run

func (cmd HDel) Run(w redis.Writer, red redis.Redka) (any, error)

type HExists

type HExists struct {
	redis.BaseCmd
	// contains filtered or unexported fields
}

Determines whether a field exists in a hash. HEXISTS key field https://redis.io/commands/hexists

func ParseHExists

func ParseHExists(b redis.BaseCmd) (HExists, error)

func (HExists) Run

func (cmd HExists) Run(w redis.Writer, red redis.Redka) (any, error)

type HGet

type HGet struct {
	redis.BaseCmd
	// contains filtered or unexported fields
}

Returns the value of a field in a hash. HGET key field https://redis.io/commands/hget

func ParseHGet

func ParseHGet(b redis.BaseCmd) (HGet, error)

func (HGet) Run

func (cmd HGet) Run(w redis.Writer, red redis.Redka) (any, error)

type HGetAll

type HGetAll struct {
	redis.BaseCmd
	// contains filtered or unexported fields
}

Returns all fields and values in a hash. HGETALL key https://redis.io/commands/hgetall

func ParseHGetAll

func ParseHGetAll(b redis.BaseCmd) (HGetAll, error)

func (HGetAll) Run

func (cmd HGetAll) Run(w redis.Writer, red redis.Redka) (any, error)

type HIncrBy

type HIncrBy struct {
	redis.BaseCmd
	// contains filtered or unexported fields
}

Increments the integer value of a field in a hash by a number. Uses 0 as initial value if the field doesn't exist. HINCRBY key field increment https://redis.io/commands/hincrby

func ParseHIncrBy

func ParseHIncrBy(b redis.BaseCmd) (HIncrBy, error)

func (HIncrBy) Run

func (cmd HIncrBy) Run(w redis.Writer, red redis.Redka) (any, error)

type HIncrByFloat

type HIncrByFloat struct {
	redis.BaseCmd
	// contains filtered or unexported fields
}

Increments the floating point value of a field by a number. Uses 0 as initial value if the field doesn't exist. HINCRBY key field increment https://redis.io/commands/hincrbyfloat

func ParseHIncrByFloat

func ParseHIncrByFloat(b redis.BaseCmd) (HIncrByFloat, error)

func (HIncrByFloat) Run

func (cmd HIncrByFloat) Run(w redis.Writer, red redis.Redka) (any, error)

type HKeys

type HKeys struct {
	redis.BaseCmd
	// contains filtered or unexported fields
}

Returns all fields in a hash. HKEYS key https://redis.io/commands/hkeys

func ParseHKeys

func ParseHKeys(b redis.BaseCmd) (HKeys, error)

func (HKeys) Run

func (cmd HKeys) Run(w redis.Writer, red redis.Redka) (any, error)

type HLen

type HLen struct {
	redis.BaseCmd
	// contains filtered or unexported fields
}

Returns the number of fields in a hash. HLEN key https://redis.io/commands/hlen

func ParseHLen

func ParseHLen(b redis.BaseCmd) (HLen, error)

func (HLen) Run

func (cmd HLen) Run(w redis.Writer, red redis.Redka) (any, error)

type HMGet

type HMGet struct {
	redis.BaseCmd
	// contains filtered or unexported fields
}

Returns the values of multiple fields in a hash. HMGET key field [field ...] https://redis.io/commands/hmget

func ParseHMGet

func ParseHMGet(b redis.BaseCmd) (HMGet, error)

func (HMGet) Run

func (cmd HMGet) Run(w redis.Writer, red redis.Redka) (any, error)

type HMSet

type HMSet struct {
	redis.BaseCmd
	// contains filtered or unexported fields
}

Sets the values of multiple fields in a hash. HMSET key field value [field value ...] https://redis.io/commands/hmset

func ParseHMSet

func ParseHMSet(b redis.BaseCmd) (HMSet, error)

func (HMSet) Run

func (cmd HMSet) Run(w redis.Writer, red redis.Redka) (any, error)

type HScan

type HScan struct {
	redis.BaseCmd
	// contains filtered or unexported fields
}

Iterates over fields and values of a hash. HSCAN key cursor [MATCH pattern] [COUNT count] https://redis.io/commands/hscan

func ParseHScan

func ParseHScan(b redis.BaseCmd) (HScan, error)

func (HScan) Run

func (cmd HScan) Run(w redis.Writer, red redis.Redka) (any, error)

type HSet

type HSet struct {
	redis.BaseCmd
	// contains filtered or unexported fields
}

Sets the values of one ore more fields in a hash. HSET key field value [field value ...] https://redis.io/commands/hset

func ParseHSet

func ParseHSet(b redis.BaseCmd) (HSet, error)

func (HSet) Run

func (cmd HSet) Run(w redis.Writer, red redis.Redka) (any, error)

type HSetNX

type HSetNX struct {
	redis.BaseCmd
	// contains filtered or unexported fields
}

Sets the value of a field in a hash only when the field doesn't exist. HSETNX key field value https://redis.io/commands/hsetnx

func ParseHSetNX

func ParseHSetNX(b redis.BaseCmd) (HSetNX, error)

func (HSetNX) Run

func (cmd HSetNX) Run(w redis.Writer, red redis.Redka) (any, error)

type HVals

type HVals struct {
	redis.BaseCmd
	// contains filtered or unexported fields
}

Returns all values in a hash. HVALS key https://redis.io/commands/hvals

func ParseHVals

func ParseHVals(b redis.BaseCmd) (HVals, error)

func (HVals) Run

func (cmd HVals) Run(w redis.Writer, red redis.Redka) (any, error)

Jump to

Keyboard shortcuts

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