conn

package
v0.5.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PONG = "PONG"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Echo

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

Echo returns the given string. ECHO message https://redis.io/commands/echo

func ParseEcho

func ParseEcho(b redis.BaseCmd) (Echo, error)

func (Echo) Run

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

type Ping

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

Returns the server's liveliness response. https://redis.io/commands/ping

func ParsePing

func ParsePing(b redis.BaseCmd) (Ping, error)

func (Ping) Run

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

type Select added in v0.5.3

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

Changes the selected database. Since Redka doesn't support multiple databases, this command is a no-op. SELECT index https://redis.io/commands/select

func ParseSelect added in v0.5.3

func ParseSelect(b redis.BaseCmd) (Select, error)

func (Select) Run added in v0.5.3

func (c Select) 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