{
  "id": "nredisstack",
  "title": "NRedisStack extensions guide",
  "url": "https://redis.io/docs/latest/develop/clients/dotnet/nredisstack/",
  "summary": "Access Redis Open Source modules",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-04-29T10:21:19-05:00",
  "children": [
    {
      "id": "queryjson",
      "summary": "Learn how to use Redis Search with JSON and hash documents.",
      "title": "Index and query documents",
      "url": "https://redis.io/docs/latest/develop/clients/dotnet/nredisstack/queryjson/"
    },
    {
      "id": "vecsearch",
      "summary": "Learn how to index and query vector embeddings with Redis",
      "title": "Index and query vectors",
      "url": "https://redis.io/docs/latest/develop/clients/dotnet/nredisstack/vecsearch/"
    },
    {
      "id": "prob",
      "summary": "Learn how to use approximate calculations with Redis.",
      "title": "Probabilistic data types",
      "url": "https://redis.io/docs/latest/develop/clients/dotnet/nredisstack/prob/"
    }
  ],
  "page_type": "content",
  "content_hash": "77709f98e3e65c1ccd044cb13fa97f835e1355fc5fd6299b4b540aba4a412a28",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "[NRedisStack](https://github.com/redis/NRedisStack) is a library that builds upon [StackExchange.Redis](https://github.com/StackExchange/StackExchange.Redis) and provides an API for the extended set of Redis data types and features, such as [JSON](https://redis.io/docs/latest/develop/data-types/json), [Redis search](https://redis.io/docs/latest/develop/ai/search-and-query),\n[probabilistic data types](https://redis.io/docs/latest/develop/data-types/probabilistic), and [Time series](https://redis.io/docs/latest/develop/data-types/timeseries).\nThe sections below explain how to install `NRedisStack`. Note that this also installs\n`StackExchange.Redis` as a dependency, so you don't need to install it as a separate step.\n\n`NRedisStack` requires a running Redis server. For production apps, provision\na hosted Redis resource such as [Redis Cloud](https://redis.io/docs/latest/operate/rc) or\n[Azure Managed Redis](https://learn.microsoft.com/en-us/azure/redis/overview). For\nlocal development and testing, you can also run Redis Open Source locally. See\n[Install Redis Open Source](https://redis.io/docs/latest/operate/oss_and_stack/install/)\nfor installation instructions.\n\n\nYou can also access Redis with an object-mapping client interface. See\n[Redis OM for .NET](https://redis.io/docs/latest/integrate/redisom-for-net)\nfor more information."
    },
    {
      "id": "install",
      "title": "Install",
      "role": "setup",
      "text": "Using the `dotnet` CLI, run:\n\n[code example]"
    },
    {
      "id": "redis-open-source-modules",
      "title": "Redis Open Source modules",
      "role": "content",
      "text": "To access Redis Open Source capabilities, use the appropriate interface like this:\n\n[code example]"
    },
    {
      "id": "more-information",
      "title": "More information",
      "role": "content",
      "text": "See the other pages in this section for more information and examples."
    }
  ],
  "examples": [
    {
      "id": "install-ex0",
      "language": "bash",
      "code": "dotnet add package NRedisStack",
      "section_id": "install"
    },
    {
      "id": "redis-open-source-modules-ex0",
      "language": "cs",
      "code": "IBloomCommands bf = db.BF();    // Bloom filter commands\nICuckooCommands cf = db.CF();  // Cuckoo filter commands\nICmsCommands cms = db.CMS();   // Count-min sketch commands\nITopKCommands topk = db.TOPK(); // Top-K commands\nITdigestCommands tdigest = db.TDIGEST(); // T-digest commands\nISearchCommands ft = db.FT();  // Redis search commands\nIJsonCommands json = db.JSON(); // JSON commands\nITimeSeriesCommands ts = db.TS(); // Time series commands",
      "section_id": "redis-open-source-modules"
    }
  ]
}
