create_key
Create a Redis key with a specified type, initial value, and optional TTL. Supports string, list, set, and hash data types.
Instructions
Create a new key in Redis
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Redis key to create | |
| ttl | No | Time to live in seconds (optional) | |
| type | No | Data type: string, list, set, hash (default: string) | |
| value | No | Initial value for the key (default: empty string) |