{
  "schema_version": 2,
  "id": "operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions",
  "title": "Triggers and functions",
  "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/",
  "summary": "Trigger and execute JavaScript functions in the Redis process",
  "aliases": [
    "/develop/interact/programmability/triggers-and-functions/",
    "/commands/tfcall/",
    "/commands/tfcallasync/",
    "/commands/tfunction-delete/",
    "/commands/tfunction-list/",
    "/commands/tfunction-load/"
  ],
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2024-06-06T06:55:24-07:00",
  "children": [
    {
      "id": "operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/Quick_Start_RI",
      "summary": "Get started with triggers and functions using Redis Insight",
      "title": "Quick start using Redis Insight",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/quick_start_ri/"
    },
    {
      "id": "operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/Quick_Start_CLI",
      "summary": "Get started with triggers and functions using redis-cli",
      "title": "Quick start using redis-cli",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/quick_start_cli/"
    },
    {
      "id": "operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/Configuration",
      "summary": "Configure the operation parameters",
      "title": "Configuration",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/configuration/"
    },
    {
      "id": "operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/Development",
      "summary": "How to develop for triggers and functions",
      "title": "Development",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/development/"
    },
    {
      "id": "operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/Debugging",
      "summary": "Methods for debugging your Redis Stack functions",
      "title": "Debugging",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/debugging/"
    },
    {
      "id": "operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/concepts",
      "summary": "Details about triggers, the JavaScript API, and advanced concepts",
      "title": "Concepts",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/concepts/"
    },
    {
      "id": "operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/Examples",
      "summary": "How triggers and functions can be used",
      "title": "Triggers and functions examples",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/examples/"
    },
    {
      "id": "operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/Known_Limitations",
      "summary": "Overview of the known limitations",
      "title": "Known limitations",
      "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/triggers-and-functions/known_limitations/"
    }
  ],
  "page_type": "content",
  "content_hash": "613a8abdf82986e12c0dc3cf28c020b56ab0eba706dc20687a943bfe3c5915db",
  "sections": [
    {
      "id": "overview-1",
      "title": "Overview",
      "role": "overview",
      "text": "[![discord](https://img.shields.io/discord/697882427875393627?style=flat-square)](https://discord.gg/xTbqgTB)\n[![Github](https://img.shields.io/static/v1?label=&message=repository&color=5961FF&logo=github)](https://github.com/RedisGears/RedisGears/)\n\nThe triggers and functions feature of Redis Stack allows running JavaScript functions inside Redis. These functions can be executed on-demand, by an event-driven trigger, or by a stream processing trigger."
    },
    {
      "id": "quick-links",
      "title": "Quick links",
      "role": "content",
      "text": "* [Command documentation](https://github.com/RedisGears/RedisGears/tree/master/docs/commands)\n* [Source code](https://github.com/RedisGears/RedisGears)\n* [Latest release](https://github.com/RedisGears/RedisGears/releases)\n* [Docker image](https://hub.docker.com/r/redis/redis-stack-server/)"
    },
    {
      "id": "primary-features",
      "title": "Primary features",
      "role": "content",
      "text": "* JavaScript engine for functions\n* On-demand functions\n* Keyspace triggers\n* Stream triggers\n* Async handling of functions\n* Read data from across the cluster"
    },
    {
      "id": "cluster-support",
      "title": "Cluster support",
      "role": "content",
      "text": "Triggers and functions support deployment and execution of functions across a cluster. Functions are executed on the correct shard based on the key that is changed or read functions can be executed on all to return a correct view of the data."
    },
    {
      "id": "references",
      "title": "References",
      "role": "related",
      "text": ""
    },
    {
      "id": "blog-posts",
      "title": "Blog posts",
      "role": "content",
      "text": "- [Expanding the Database Trigger Features in Redis](https://redis.com/blog/database-trigger-features/)"
    },
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": ""
    }
  ],
  "examples": []
}
