set
Store a string value in Redis using MCP, with options to set expiry in milliseconds and ensure the key does not already exist.
Instructions
Set string value with optional NX (only if not exists) and PX (expiry in milliseconds) options
Input Schema
Name | Required | Description | Default |
---|---|---|---|
key | Yes | Key to set | |
nx | No | Only set if key does not exist | |
px | No | Set expiry in milliseconds | |
value | Yes | Value to set |