redis README

项目的 README,来自 github.com/tporadowski/redis。合并为一个 markdown 文件:README.md。

Redis for Windows

This is an unofficial native Windows port. It is a modified version of Redis Open Source. It is not affiliated with, endorsed by, or sponsored by Redis Ltd. Any use of Redis Ltd trademarks is subject to applicable law (trademark policy).

Two Windows lines live in this repository:

Line Branch / tag License Who it is for
Redis 8.10 for Windows win-8.10 (this tree). First GA tag (when cut): v8.10.0-win.1 RSALv2 / SSPLv1 / AGPLv3 (LICENSE.txt) Native 8.10: IOCP, QFork, Service, TLS, cluster, Sentinel
Redis 5.0.14.1 for Windows win-5.0 / v5.0.14.1 BSD-3-Clause Users who need the older BSD 5.0 port

win-4.0.14 is also preserved. Do not merge 8.10 into the BSD branches.

Notices: NOTICE. Port plan: WINDOWS_8.10_PORT_PLAN.md.

Redis 8.10 for Windows (win-8.10)

Native x64 binaries (no Cygwin). clang-cl + CMake + Ninja.

Build and run

scripts\build-win.ps1
build\redis-server.exe redis.windows.conf
build\redis-cli.exe PING

TLS is on by default (vcpkg OpenSSL 3). -NoTls builds a TCP-only server.

What this port is (and is not)

This tree starts from official Redis Open Source 8.10.0 and adds a Windows layer (Win32_Interop, IOCP, QFork). It is not the Redis Ltd product, not Redis Cloud, and not the official Linux Docker image.

Bundled Rust modules (Search / JSON / Time Series / Bloom) are out of scope. In-tree vector-sets compile into redis-server (INCLUDE_VEC_SETS).

Known gaps and the next work queue: WINDOWS_8.10_REMAINING.md (module API tests, top-level cluster / Sentinel / module suites, --tls and --large-memory).

Redis 5.0.14.1 for Windows (win-5.0)

Need BSD Redis 5 on Windows? Stay on win-5.0 / tag v5.0.14.1. That line is Visual Studio / MSBuild, still supported, and not replaced by this 8.10 tree. 8.10 → 5.0 data is not a supported downgrade; a 5.0 RDB can be loaded by 8.10.

Historical MSOpenTech 3.2 notes live on the 5.0/4.0 wiki and trees. They are not reproduced here.

What is Redis?

Redis is an in-memory data structure server (cache, session store, queues, streams, and more). Official documentation is at redis.io/docs. Command reference: redis.io/commands.

Redis Open Source 8.0+ is tri-licensed (RSALv2 / SSPLv1 / AGPLv3). Redis Ltd. also sells Redis Software and Redis Cloud — those are not this port.

Code contributions

PRs to tporadowski/redis on win-8.10 are contributions to this unofficial Windows port, not to Redis Ltd.

CONTRIBUTING.md in this tree is the upstream Redis Ltd Software Grant / CLA. It applies if you send a patch to Redis Ltd (redis/redis). It is not a CLA for tporadowski/redis Windows work.

Security reports for this port: open an issue on tporadowski/redis. Upstream security process is in SECURITY.md.

Redis trademarks

The purpose of a trademark is to identify the goods and services of a person or company without causing confusion. As the registered owner of its name and logo, Redis Ltd accepts certain limited uses of its trademarks, but it has requirements that must be followed as described in its Trademark Guidelines.

This project does not use Redis Ltd logos and does not claim Redis Ltd endorsement.

redis (tporadowski/redis)

正在搜索数据库…

10.3K ·GitHub
这是什么?这是 Redis 在 Windows x64 上的非官方原生移植版。Redis 是一种内存键值数据库,可以把数据保存到磁盘上,而这个项目重新编译它,让它能作为一个真正的 Windows 程序运行。
它是真正的 Redis 服务器,还是某种包装?它是原生移植的真正 Redis 服务器。你可以使用熟悉的键值模型,包括 Strings、Lists、Sets、Sorted Sets、Hashes、Streams 和 HyperLogLogs,数据保存在内存中并持久化到磁盘。
在 Windows 上怎么安装?从发布页面下载预编译的版本即可——面向 Windows x64 的 Redis 5.0.14 或 4.0.14,以 MSI 安装包形式发布,可以直接运行。
这是微软或 Redis 官方团队的移植版吗?不是——它是非官方的。它延续了 MS Open Tech 已归档的 win-3.2.100 移植版:源代码由人工合并,工程更新到 Visual Studio 2019,并修复了发现的问题(主要通过单元测试验证)。
有没有 32 位版本,还是只有 x64?稳定分支都是 Windows x64 移植版——已发布的 Redis 4.0.14 和 5.0.14 版本都是针对 x64 构建的。
作者是怎么让 Redis 这个 C 语言项目在 Windows 上原生运行的?除了把代码更新为 Visual Studio 2019 工程之外,这个移植版还带有一个定制过的 jemalloc 分配器:Windows 的 VirtualAlloc/VirtualFree 调用被替换为 AllocHeapBlock/PurgePages 和 FreeHeapBlock 辅助函数,这样移植版就能在保存 RDB/AOF 文件时追踪哪些内存区域会提供给子进程。这些 jemalloc 改动在单独的仓库中维护,并复制到 deps/jemalloc 目录里。
它稳定到可以放心依赖吗?win-4.0.14 和 win-5.0 两个分支都标注为稳定移植版,但作者仍请用户实际测试发布版本并反馈问题,所以最好把它当作社区维护的移植版,在自己的实际负载上验证后再使用。
有哪些类似的项目?redis, dragonfly, dicedb, phpredis, valkey, kividb, etcd, redisson
大小
322.5 MB
星标
10.3K
时长
9年
提交 · 90 天