{
  "id": "executearray",
  "title": "ExecuteArray",
  "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsbuilder/executearray/",
  "summary": "Runs a Redis command.",
  "tags": [
    "docs",
    "operate",
    "stack"
  ],
  "last_updated": "2026-04-22T11:55:45+02:00",
  "page_type": "content",
  "content_hash": "958a8bf455b058debe3b157bac124103bde0f78bc27905b9084c2e69b43cf37e",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "[code example]\n\nRuns a Redis command. It accepts an array of strings, which represents the command to execute."
    },
    {
      "id": "parameters",
      "title": "Parameters",
      "role": "parameters",
      "text": "| Name | Type | Description |\n|------|------|-------------|\n| command | array of strings | A Redis command |"
    },
    {
      "id": "returns",
      "title": "Returns",
      "role": "returns",
      "text": "Returns the command result. It could be a string or an array of strings, depending on the command."
    },
    {
      "id": "example",
      "title": "Example",
      "role": "example",
      "text": "[code example]"
    }
  ],
  "examples": [
    {
      "id": "overview-ex0",
      "language": "java",
      "code": "public static native java.lang.Object executeArray(\n    java.lang.String[] command)",
      "section_id": "overview"
    },
    {
      "id": "example-ex0",
      "language": "java",
      "code": "GearsBuilder.executeArray(new String[]{\"SET\", \"age:maximum\", \"100\"});",
      "section_id": "example"
    }
  ]
}
