string

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Get

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

Get returns the string value of a key. GET key https://redis.io/commands/get

func ParseGet

func ParseGet(b redis.BaseCmd) (Get, error)

func (Get) Run

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

type GetSet

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

Returns the previous string value of a key after setting it to a new value. GETSET key value https://redis.io/commands/getset

func ParseGetSet

func ParseGetSet(b redis.BaseCmd) (GetSet, error)

func (GetSet) Run

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

type Incr

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

Increments the integer value of a key by one. Uses 0 as initial value if the key doesn't exist. INCR key https://redis.io/commands/incr

Decrements the integer value of a key by one. Uses 0 as initial value if the key doesn't exist. DECR key https://redis.io/commands/decr

func ParseIncr

func ParseIncr(b redis.BaseCmd, sign int) (Incr, error)

func (Incr) Run

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

type IncrBy

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

Increments the integer value of a key by a number. Uses 0 as initial value if the key doesn't exist. INCRBY key increment https://redis.io/commands/incrby

Decrements the integer value of a key by a number. Uses 0 as initial value if the key doesn't exist. DECRBY key increment https://redis.io/commands/decrby

func ParseIncrBy

func ParseIncrBy(b redis.BaseCmd, sign int) (IncrBy, error)

func (IncrBy) Run

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

type IncrByFloat

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

Increment the floating point value of a key by a number. Uses 0 as initial value if the key doesn't exist. INCRBYFLOAT key increment https://redis.io/commands/incrbyfloat

func ParseIncrByFloat

func ParseIncrByFloat(b redis.BaseCmd) (IncrByFloat, error)

func (IncrByFloat) Run

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

type MGet

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

Atomically returns the string values of one or more keys. MGET key [key ...] https://redis.io/commands/mget

func ParseMGet

func ParseMGet(b redis.BaseCmd) (MGet, error)

func (MGet) Run

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

type MSet

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

Atomically creates or modifies the string values of one or more keys. MSET key value [key value ...] https://redis.io/commands/mset

func ParseMSet

func ParseMSet(b redis.BaseCmd) (MSet, error)

func (MSet) Run

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

type Set

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

Set sets the string value of a key. The key is created if it doesn't exist. SET key value [NX | XX] [GET] [EX seconds | PX milliseconds | EXAT unix-time-seconds | PXAT unix-time-milliseconds | KEEPTTL] https://redis.io/commands/set

func ParseSet

func ParseSet(b redis.BaseCmd) (Set, error)

func (Set) Run

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

type SetEX

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

Sets the string value and expiration time of a key. Creates the key if it doesn't exist. SETEX key seconds value https://redis.io/commands/setex

func ParseSetEX

func ParseSetEX(b redis.BaseCmd, multi int) (SetEX, error)

func (SetEX) Run

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

type SetNX

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

Set the string value of a key only when the key doesn't exist. SETNX key value https://redis.io/commands/setnx

func ParseSetNX

func ParseSetNX(b redis.BaseCmd) (SetNX, error)

func (SetNX) Run

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

type Strlen

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

Strlen returns the length of a string value. STRLEN key https://redis.io/commands/strlen

func ParseStrlen

func ParseStrlen(b redis.BaseCmd) (Strlen, error)

func (Strlen) Run

func (cmd Strlen) 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