type
Retrieve the data type of a specified key in Redis to identify its storage format. Supports efficient data management by verifying key existence and type directly.
Instructions
Returns the string representation of the type of the value stored at key
Args: key (str): The key to check.
Returns: str: The type of key, or none when key doesn't exist
Input Schema
Name | Required | Description | Default |
---|---|---|---|
key | Yes |