Module commands

Source
Expand description

§Redis command abstractions

This crates includes abstractions for some Redis commands like AUTH, HELLO, GET, SET, PUBLISH, …

Each abstraction is implementing the Command trait.

For executing arbitrary (not yet implemented) commands, CustomCommand may be used. As alternative you can create new commands by implementing the Command trait.

Please consider contributing new command abstractions.

Modules§

auth
Abstraction of AUTH command.
bgsave
Abstraction of BGSAVE command.
builder
Builder for constructing RESP2/3 frames
custom
Abstraction for arbitrary commands.
get
Abstraction of GET command.
hello
Abstraction of HELLO command.
helpers
Helpers for command abstraction.
hget
Abstraction of HGET command.
hgetall
Abstraction of HGETALL command.
hset
Abstraction of HSET command.
ping
Abstraction of PING command.
publish
Abstraction of PUBLISH command.
set
Abstraction of SET command.

Structs§

ResponseTypeError
Error in case Redis response type does not match specification

Traits§

Command
Generic command structure. F is either Resp2Frame or Resp3Frame