set
Store Redis string values with optional expiration. Define a key, input the value (string, bytes, number, or dict), and optionally set a timeout in seconds for automated cleanup.
Instructions
Set a Redis string value with an optional expiration time.
Args: key (str): The key to set. value (str, bytes, int, float, dict): The value to store. expiration (int, optional): Expiration time in seconds.
Returns: str: Confirmation message or an error message.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
expiration | No | ||
key | Yes | ||
value | Yes |