{"id":15037062,"url":"https://github.com/redis-windows/redis-windows","last_synced_at":"2026-05-06T03:03:55.574Z","repository":{"id":94086129,"uuid":"234337376","full_name":"redis-windows/redis-windows","owner":"redis-windows","description":"Redis 6.0.20 6.2.18 7.0.15  7.2.8  7.4.3  8.0.0 for Windows","archived":false,"fork":false,"pushed_at":"2026-02-08T08:52:11.000Z","size":3599,"stargazers_count":3440,"open_issues_count":25,"forks_count":290,"subscribers_count":44,"default_branch":"main","last_synced_at":"2026-02-08T15:32:59.719Z","etag":null,"topics":["redis","redis-for-windows","redis-server","redis-windows","redis6","redis62","redis7","redis8"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redis-windows.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-01-16T14:24:26.000Z","updated_at":"2026-02-08T15:04:52.000Z","dependencies_parsed_at":"2023-03-23T03:01:59.336Z","dependency_job_id":"b0979176-101f-481d-a762-a84b60b1ec87","html_url":"https://github.com/redis-windows/redis-windows","commit_stats":{"total_commits":109,"total_committers":8,"mean_commits":13.625,"dds":"0.22018348623853212","last_synced_commit":"cd505af55c4a3e311f877913359140e132ff076c"},"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"purl":"pkg:github/redis-windows/redis-windows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-windows%2Fredis-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-windows%2Fredis-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-windows%2Fredis-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-windows%2Fredis-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redis-windows","download_url":"https://codeload.github.com/redis-windows/redis-windows/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redis-windows%2Fredis-windows/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29307633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T16:09:25.305Z","status":"ssl_error","status_checked_at":"2026-02-10T16:08:52.170Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["redis","redis-for-windows","redis-server","redis-windows","redis6","redis62","redis7","redis8"],"created_at":"2024-09-24T20:33:15.496Z","updated_at":"2026-05-06T03:03:55.560Z","avatar_url":"https://github.com/redis-windows.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redis for Windows\n\n[![Build](https://github.com/redis-windows/redis-windows/actions/workflows/build-redis.yml/badge.svg)](https://github.com/redis-windows/redis-windows/actions)\n[![Release](https://img.shields.io/github/v/release/redis-windows/redis-windows)](https://github.com/redis-windows/redis-windows/releases)\n\nCompiled from official Redis source for Windows.\n\n## Quick Start\n\n```cmd\n# After download and extract\nredis-server.exe redis.conf\n\n# Or use RedisService (recommended)\nRedisService.exe run --foreground\n```\n\n## Usage\n\n### Option 1: RedisService.exe (Recommended)\n\nAutomatically handles path conversion. Use native Windows paths.\n\n```cmd\n# Run in foreground\nRedisService.exe run --foreground --port 6379 --dir C:\\redis-data\n\n# Install as Windows service\nRedisService.exe install -c C:\\config\\redis.conf --dir D:\\data\\redis --port 6379\nnet start Redis\n\n# Uninstall service\nRedisService.exe uninstall\n```\n\n### Option 2: redis-server.exe (Direct)\n\n**Important:** This build uses Cygwin runtime. Command-line paths must use Cygwin format.\n\n```cmd\n# ✅ Correct - Cygwin path format\nredis-server.exe /cygdrive/c/config/redis.conf --dir /cygdrive/d/data --port 6379\n\n# ❌ Wrong - Windows paths not supported\nredis-server.exe C:\\config\\redis.conf --dir D:\\data\n```\n\n**Path Conversion:**\n\n| Windows | Cygwin |\n|---------|--------|\n| `C:\\path` | `/cygdrive/c/path` |\n| `D:\\path` | `/cygdrive/d/path` |\n| `.\\data` | `./data` (relative works as-is) |\n\n**In config file:** Use forward slashes (Windows style with `/`).\n\n```conf\n# Recommended in redis.conf\ndir C:/redis/data\nlogfile C:/redis/logs/redis.log\n```\n\n## RedisService CLI Reference\n\n```cmd\nRedisService.exe [command] [options]\n\nCommands:\n  install       Install as Windows service\n  uninstall     Uninstall Windows service\n  run           Run Redis (default)\n\nOptions:\n  -c, --config \u003cFILE\u003e      Config file path\n  --port \u003cPORT\u003e            Server port\n  --dir \u003cDIRECTORY\u003e        Data directory\n  --loglevel \u003cLEVEL\u003e       Log level (debug/verbose/notice/warning)\n  -f, --foreground         Run in foreground\n  --service-name \u003cNAME\u003e    Service name (default: Redis)\n  --start-mode \u003cMODE\u003e      Startup type (auto/manual)\n  -h, --help               Show help\n  -v, --version            Show version\n```\n\n## Cross-Partition/Directories\n\nConfig, data, and program can be in any location:\n\n```cmd\n# Program: C:\\redis\\RedisService.exe\n# Config:  D:\\config\\redis.conf\n# Data:    E:\\data\\redis\n\nRedisService.exe run -c D:\\config\\redis.conf --dir E:\\data\\redis --foreground\n```\n\n## Data Persistence\n\nData is saved automatically on shutdown. `RedisService.exe` correctly passes `--dir` to ensure data is saved to the specified directory.\n\n```cmd\n# Start\nRedisService.exe run --foreground --dir C:\\redis-data\n\n# Write data\nredis-cli SET mykey myvalue\n\n# Graceful shutdown\nredis-cli SHUTDOWN\n\n# Restart - data persists\nredis-cli GET mykey   # Returns \"myvalue\"\n```\n\n## FAQ\n\n### redis-server.exe can't find config file?\n\nUse Cygwin path format:\n```cmd\nredis-server.exe /cygdrive/c/config/redis.conf\n```\n\nOr use `RedisService.exe` which handles path conversion automatically.\n\n### Data lost after restart?\n\n1. Always specify `--dir` option\n2. Use graceful shutdown (`redis-cli SHUTDOWN` or `Ctrl+C`), don't kill the process\n3. Use the same `--dir` when restarting\n\n## Technical Details\n\n- Build toolchain: MSYS2 / Cygwin\n- Service wrapper: .NET 10.0\n- Path handling: RedisService auto-converts Windows ↔ Cygwin paths\n\n---\n\nEnglish | [简体中文](README.zh_CN.md)\n\n## Disclaimer\n\nThis project is not affiliated with, endorsed by, or sponsored by Redis Ltd. The license provided here applies only to this repository, not to the official Redis project.\n\nThis is recommended for local development only. For production environments, please follow Redis official guidance and deploy on Linux. This project is not responsible for any losses caused by its use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredis-windows%2Fredis-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredis-windows%2Fredis-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredis-windows%2Fredis-windows/lists"}