Skip to main content
Glama

Redis MCP Server

Official
by redis

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

NameRequiredDescriptionDefault
expirationNo
keyYes
valueYes

Input Schema (JSON Schema)

{ "properties": { "expiration": { "default": null, "title": "Expiration", "type": "integer" }, "key": { "title": "Key", "type": "string" }, "value": { "anyOf": [ { "type": "string" }, { "format": "binary", "type": "string" }, { "type": "integer" }, { "type": "number" }, { "type": "object" } ], "title": "Value" } }, "required": [ "key", "value" ], "title": "setArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/redis/mcp-redis'

If you have feedback or need assistance with the MCP directory API, please join our Discord server