Redis MCP Server

set

Set string value with optional NX (only if not exists) and PX (expiry in milliseconds) options

Input Schema

NameRequiredDescriptionDefault
keyYesKey to set
nxNoOnly set if key does not exist
pxNoSet expiry in milliseconds
valueYesValue to set

Input Schema (JSON Schema)

{ "properties": { "key": { "description": "Key to set", "type": "string" }, "nx": { "description": "Only set if key does not exist", "type": "boolean" }, "px": { "description": "Set expiry in milliseconds", "type": "number" }, "value": { "description": "Value to set", "type": "string" } }, "required": [ "key", "value" ], "type": "object" }