Redis · Schema

Redis Command

Schema for a Redis command descriptor as returned by the COMMAND INFO command.

CacheDatabaseIn-MemoryKey-Value StoreNoSQLOpen-SourceStreaming

Properties

Name Type Description
name string Command name in lowercase (e.g., get, set, hset).
arity integer Command arity: number of required arguments. Negative arity means minimum argument count (e.g., -2 means at least 1 arg after command name).
flags array Command flags indicating behavior (e.g., write, readonly, denyoom, admin).
first_key integer Index of first key in argument list.
last_key integer Index of last key in argument list. -1 means last argument.
step integer Step between keys in argument list.
acl_categories array ACL categories the command belongs to.
complexity string Time complexity annotation (e.g., O(1), O(N), O(log N)).
View JSON Schema on GitHub

JSON Schema

redis-command-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://redis.io/schemas/command.json",
  "title": "Redis Command",
  "description": "Schema for a Redis command descriptor as returned by the COMMAND INFO command.",
  "type": "object",
  "required": ["name", "arity"],
  "properties": {
    "name": {
      "type": "string",
      "description": "Command name in lowercase (e.g., get, set, hset)."
    },
    "arity": {
      "type": "integer",
      "description": "Command arity: number of required arguments. Negative arity means minimum argument count (e.g., -2 means at least 1 arg after command name)."
    },
    "flags": {
      "type": "array",
      "description": "Command flags indicating behavior (e.g., write, readonly, denyoom, admin).",
      "items": {
        "type": "string",
        "enum": ["write", "readonly", "denyoom", "admin", "pubsub", "noscript", "random", "sort_for_script", "loading", "stale", "skip_monitor", "asking", "fast", "no_auth", "may_replicate", "sentinel", "only_sentinel", "allow_busy", "module_getkeys"]
      }
    },
    "first_key": {
      "type": "integer",
      "description": "Index of first key in argument list."
    },
    "last_key": {
      "type": "integer",
      "description": "Index of last key in argument list. -1 means last argument."
    },
    "step": {
      "type": "integer",
      "description": "Step between keys in argument list."
    },
    "acl_categories": {
      "type": "array",
      "description": "ACL categories the command belongs to.",
      "items": { "type": "string" }
    },
    "complexity": {
      "type": "string",
      "description": "Time complexity annotation (e.g., O(1), O(N), O(log N))."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/redis-command"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.