Skip to main content
Glama

Redis MCP Server

Official
by redis

expire

Set a specific expiration time for Redis keys using seconds. Ideal for managing temporary data or automating key removal in Redis databases.

Instructions

Set an expiration time for a Redis key.

Args: name: The Redis key. expire_seconds: Time in seconds after which the key should expire.

Returns: A success message or an error message.

Input Schema

NameRequiredDescriptionDefault
expire_secondsYes
nameYes

Input Schema (JSON Schema)

{ "properties": { "expire_seconds": { "title": "Expire Seconds", "type": "integer" }, "name": { "title": "Name", "type": "string" } }, "required": [ "name", "expire_seconds" ], "title": "expireArguments", "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