# Redis on Windows

Redis on Windows is an in-memory data structure store compiled from official Redis sources to run natively on Windows, usable as a database, cache, or message broker. It is open source and self-hosted, installable on TrueNAS.

Canonical page: https://ourlocalhost.com/app/5059/redis-on-windows

## Description

Redis on Windows is an in-memory data structure store compiled from official Redis sources to run natively on Windows, usable as a database, cache, or message broker.

## Platform availability

Available on 1 of 10 platforms: TrueNAS.

## Health score

63/100 (Good), based on 4 of 5 factors.
- Maintained: 70 (last commit 25 days ago)
- Popular: 73 (4,419 GitHub stars)
- Easy to install: 15 (0 install platforms, install notes)
- Security check: 85 (no serious findings, CI)

## Links

- GitHub: https://github.com/redis-windows/redis-windows
- TrueNAS: https://apps.truenas.com/catalog/redis

## Common questions

### How do I run Redis on Windows as a Windows service?

Use RedisService.exe install with your config file, data directory, and port, then start the service with net start Redis; you can remove it with RedisService.exe uninstall.

### Why does redis-server.exe fail to find a config file on Windows?

The redis-server.exe build uses Cygwin, so command-line paths must use Cygwin-style format such as /cygdrive/c/config/redis.conf, and redis.conf should use forward slashes.

### How do I keep Redis data persistent across restarts?

Specify --dir for the data directory, shut down gracefully with redis-cli SHUTDOWN or Ctrl+C instead of killing the process, and restart with the same --dir.

### Can the Redis executable, config file, and data directory be on different drives?

Yes, RedisService.exe can use different locations for the program, config file, and data directory; pass the config with -c and the data directory with --dir.

## Alternatives

- Apache Cassandra
- Azure Cosmos DB
- CockroachDB: CockroachDB is a distributed SQL database for developers and operators of transactional applications that need horizontal scaling and resil…
- CouchDB: CouchDB is a document-oriented NoSQL database with a RESTful HTTP/JSON interface for storing, querying, and synchronising JSON documents ac…
- FerretDB: FerretDB is an open-source MongoDB compatibility proxy for self-hosted stacks.
- KeyDB: KeyDB is a distributed, Redis-compatible key-value database that adds true multi-master replication, letting any number of servers accept w…
- MongoDB: MongoDB is an open-source, document-oriented NoSQL database that stores flexible, JSON-like documents, helping developers and self-hosters…
- Redis: Redis is a fast, in-memory data structure store that can be used as a database, cache, and message broker.
- Valkey: Valkey is an open-source, high-performance in-memory key-value datastore forked from Redis.
- memcached: Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls,…
- ncache: NCache is a fast, scalable, open-source distributed cache for .NET applications that keeps frequently used data in a shared in-memory pool…
- rethinkdb: RethinkDB is an open-source, distributed NoSQL database built for realtime web applications.

---
Source: Our Local Host (https://ourlocalhost.com/app/5059/redis-on-windows), the self-hosted and open-source app directory.
