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 |