<CMD NAME HERE>
Syntax
Section titled “Syntax”# command syntax here
Parameters
Section titled “Parameters”Parameter | Description | Type | Required |
---|---|---|---|
Return values
Section titled “Return values”Condition | Return Value |
---|---|
Behaviour
Section titled “Behaviour”- Bullet 1
- Bullet 2
- Bullet 3
Errors
Section titled “Errors”-
Wrong type of value or key
:- Error Message:
(error) WRONGTYPE Operation against a key holding the wrong kind of value
- Occurs when attempting to use the command on a key that contains a non-string value.
- Error Message:
Example Usage
Section titled “Example Usage”Basic Usage
Section titled “Basic Usage”127.0.0.1:7379> SET foo barOK
Invalid usage
Section titled “Invalid usage”127.0.0.1:7379> <CMD syntax here>(error) ERR syntax error
Best Practices
Section titled “Best Practices”Alternatives
Section titled “Alternatives”Subcommands
Section titled “Subcommands”- subcommand: Optional. Available subcommands include:
subcommand1
: some description of the subcommand.