Skip to main content
Glama

Redis MCP Server

Official
by redis

hset

Set a specific field in a Redis hash with an optional expiration time, enabling efficient data management and storage control in Redis MCP Server.

Instructions

Set a field in a hash stored at key with an optional expiration time.

Args: name: The Redis hash key. key: The field name inside the hash. value: The value to set. expire_seconds: Optional; time in seconds after which the key should expire.

Returns: A success message or an error message.

Input Schema

NameRequiredDescriptionDefault
expire_secondsNo
keyYes
nameYes
valueYes

Input Schema (JSON Schema)

{ "properties": { "expire_seconds": { "default": null, "title": "Expire Seconds", "type": "integer" }, "key": { "title": "Key", "type": "string" }, "name": { "title": "Name", "type": "string" }, "value": { "anyOf": [ { "type": "string" }, { "type": "integer" }, { "type": "number" } ], "title": "Value" } }, "required": [ "name", "key", "value" ], "title": "hsetArguments", "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