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
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 |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from Redis MCP Server
Related Tools
- @farhankaz/redis-mcp
- @farhankaz/redis-mcp
- @xiaoguomeiyitian/ToolBox
- @redis/mcp-redis-cloud
- @farhankaz/redis-mcp