Optional blockingOptional dataUsed for "database" commands to enforce type checking.
Private loggerMaximum number of parameters allowed. -1 for no maximum.
Minimum number of parameters require.
Optional pubUsed when PUB/SUB is in effect.
Optional signSign is used in commands with a compliment command. The only current example is INCR/DECR. Sign is 1 for INCR and -1 for DECR
Optional txUsed in transactions to enqueue a command.
Every command must implement the execute method.
Private matchPrivate parsePrivate parsePrivate parsePrivate save
Available (in this form) since v2.6.12
Set key to hold the string value. If key already holds a value, it is overwritten, regardless of its type.
Any previous time to live associated with the key is discarded on successful SET operation.
EX seconds -- Set the specified expire time, in seconds. PX milliseconds -- Set the specified expire time, in milliseconds. NX -- Only set the key if it does not already exist. XX -- Only set the key if it already exist.
RETURNS: Simple string reply: OK if SET was executed correctly. Null reply: a Null Bulk Reply is returned if the SET operation was not performed because the user specified the NX or XX option but the condition was not met.
Note that XX or NX can be specified multiple times without change in behavior