Redis MCP Server

set

Store a string value in Redis with options to set expiration (PX) or ensure the key does not already exist (NX), enabling precise data management and control.

Instructions

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" }

You must be authenticated.

Other Tools from Redis MCP Server

Related Tools

ID: cbn7lsbp7h