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 — это размещаемая в памяти key-value база данных с сохранением на диск, а этот проект пересобирает её так, чтобы она работала как полноценная программа для Windows.
Это настоящий сервер Redis или какая-то обёртка?Это настоящий сервер Redis, портированный нативно. Вы получаете привычную key-value модель со Strings, Lists, Sets, Sorted Sets, Hashes, Streams и HyperLogLogs — всё хранится в памяти и сохраняется на диск.
Как установить его на Windows?Скачайте готовую сборку со страницы релизов — Redis 5.0.14 или 4.0.14 для Windows x64; там они выложены в виде MSI-установщиков, которые можно запустить напрямую.
Это официальный порт от Microsoft или команды Redis?Нет — порт неофициальный. Он продолжает архивный порт win-3.2.100 от MS Open Tech: исходники были вручную объединены, проекты обновлены до 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
Автор
tporadowski
Размер
322.5 MB
Звёзды
10.3K
Возраст
9 г
Коммиты · 90 дней