# 使用 Homebrew, Nix, scoop 安装 garnet

查看 garnet 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:garnet
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install garnet
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#garnet
```

  证据: nixpkgs package indexes: pkgs/by-name/ga/garnet/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/garnet
```

  证据: Scoop official bucket manifest trees: bucket/garnet.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:garnet
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/garnet>
- **版本:** 2.1.1
- **来源摘要:** High-performance cache-store
- **主页:** <https://microsoft.github.io/garnet/>
- **仓库:** <https://github.com/microsoft/garnet>
- **上游文档:** <https://microsoft.github.io/garnet/>
- **许可证:** MIT
- **源码归档:** <https://github.com/microsoft/garnet/archive/refs/tags/v2.1.1.tar.gz>
- **最后更新:** 2026-07-30T20:57:37Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- GarnetServer (cli)
- GarnetServer (别名)

## 依赖

- dotnet

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.1.1
- 管理器更新时间: 2026-07-30
- 本地数据: OK
- 上游仓库: https://github.com/microsoft/garnet
- 检测到的最新版本: v2.1.1 (当前)
## 项目历史与用法

Garnet is a Microsoft Research remote cache-store that speaks the Redis RESP protocol while using a .NET and Tsavorite-based architecture.

### 项目历史

The public GitHub repository was created in August 2023, and v1.0.0 was released in March 2024. Microsoft describes Garnet as a new cache-store focused on throughput, latency, scalability, storage, recovery, cluster sharding, key migration, and replication.

The project builds on Microsoft research in storage and systems, with the README naming Tsavorite as Garnet's storage layer and noting a Garnet paper planned for PVLDB 2026.

### 采用历史

Garnet's adoption path is deliberately Redis-compatible: it starts from the RESP wire protocol so existing Redis clients can talk to it. The README also points to a managed Azure Cosmos DB Garnet Cache offering, moving the project from open-source package to managed service surface.

### 使用方式

Users run GarnetServer and connect with Redis-compatible clients on the usual cache-server model. The docs cover building with .NET, deploying the server, connecting RESP clients, configuration options, TLS, cluster mode, command support, and benchmarking.

### 为什么软件包爱好者会关心

Garnet is significant for package and infrastructure users because it is a Redis-protocol server distributed as source, NuGet packages, a .NET tool, Homebrew, Nix, and Scoop packages. It is also a rare Microsoft Research database system designed to be both benchmark-visible and drop-in-client-friendly.

### 时间线

- 2023: Public GitHub repository created.
- 2024: v1.0.0 released.
- 2026: Preview 2.0.1 beta releases published and the Garnet paper scheduled for PVLDB 2026.

### Related projects

- Garnet is related to Redis through RESP compatibility, StackExchange.Redis as a supported client example, Tsavorite as its storage engine, DiskANN for vector-search previews, and Azure Cosmos DB Garnet Cache as a managed offering.

### 来源

- <https://api.github.com/repos/microsoft/garnet>
- <https://api.github.com/repos/microsoft/garnet/releases?per_page=100>
- <https://github.com/microsoft/garnet>
- <https://microsoft.github.io/garnet/docs/getting-started>
- <https://raw.githubusercontent.com/microsoft/garnet/main/README.md>


## 安全说明

没有找到 garnet 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** garnet
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Nix - garnet: normalized package name match | nixpkgs package indexes: pkgs/by-name/ga/garnet/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/garnet: normalized package name match | Scoop official bucket manifest trees: bucket/garnet.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [dotnet](https://pkg.so/zh-hans/brew/dotnet/) - Runtime dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [redis](https://pkg.so/zh-hans/brew/redis/) - Shares pkgdb curated category or tags: cache, cli, data, database, redis-protocol.
- [redis@8.2](https://pkg.so/zh-hans/brew/redis-8-2/) - Shares pkgdb curated category or tags: cache, cli, data, database, redis-protocol.
- [kyoto-tycoon](https://pkg.so/zh-hans/brew/kyoto-tycoon/) - Shares pkgdb curated category or tags: cache, cli, data, database, server.
- [mysql](https://pkg.so/zh-hans/brew/mysql/) - Shares pkgdb curated category or tags: cli, data, database, server.
- [postgresql@14](https://pkg.so/zh-hans/brew/postgresql-14/) - Shares pkgdb curated category or tags: cli, data, database, server.
- [postgresql@16](https://pkg.so/zh-hans/brew/postgresql-16/) - Shares pkgdb curated category or tags: cli, data, database, server.
- [postgresql@17](https://pkg.so/zh-hans/brew/postgresql-17/) - Shares pkgdb curated category or tags: cli, data, database, server.
- [postgresql@18](https://pkg.so/zh-hans/brew/postgresql-18/) - Shares pkgdb curated category or tags: cli, data, database, server.
- [valkey](https://pkg.so/zh-hans/brew/valkey/) - Local metadata places this package in an adjacent workflow. Shared terms: cache, cli, data, database, high.
- [memcached](https://pkg.so/zh-hans/brew/memcached/) - Local metadata places this package in an adjacent workflow. Shared terms: cache, cli, data, high, performance.

## Combined YAML source

View the package source record on GitHub. [combined/garnet.yml](https://github.com/mxcl/pkgdb/blob/main/combined/garnet.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
