server

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Container command for runtime configuration commands. CONFIG https://redis.io/commands/config

func ParseConfig

func ParseConfig(b redis.BaseCmd) (Config, error)

func (Config) Run

func (c Config) Run(w redis.Writer, red redis.Redka) (any, error)

type ConfigGet

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

Returns the effective values of configuration parameters. CONFIG GET parameter [parameter ...] https://redis.io/commands/config-get

func ParseConfigGet

func ParseConfigGet(args [][]byte) (ConfigGet, error)

func (ConfigGet) Run

func (c ConfigGet) Run(w redis.Writer, _ redis.Redka) (any, error)

type DBSize

type DBSize struct {
	redis.BaseCmd
}

Returns the number of keys in the database. DBSIZE https://redis.io/commands/dbsize

func ParseDBSize

func ParseDBSize(b redis.BaseCmd) (DBSize, error)

func (DBSize) Run

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

type Lolwut

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

Answers any question you throw at it with magic ⋆。𖦹°⭒˚。⋆ LOLWUT [question...]

func ParseLolwut

func ParseLolwut(b redis.BaseCmd) (Lolwut, error)

func (Lolwut) Run

func (c Lolwut) Run(w redis.Writer, _ redis.Redka) (any, error)

type OK

type OK struct {
	redis.BaseCmd
}

Dummy command that always returns OK.

func ParseOK

func ParseOK(b redis.BaseCmd) (OK, error)

func (OK) Run

func (c OK) Run(w redis.Writer, _ redis.Redka) (any, error)

type Unknown

type Unknown struct {
	redis.BaseCmd
}

Unknown is a placeholder for unknown commands. Always returns an error.

func ParseUnknown

func ParseUnknown(b redis.BaseCmd) (Unknown, error)

func (Unknown) Run

func (cmd Unknown) Run(w redis.Writer, _ redis.Redka) (any, error)

Jump to

Keyboard shortcuts

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