{"id":25044618,"url":"https://github.com/farbodahm/codecrafters-redis-go","last_synced_at":"2026-02-18T15:01:55.466Z","repository":{"id":273428715,"uuid":"919679117","full_name":"farbodahm/codecrafters-redis-go","owner":"farbodahm","description":"My solution to \"Build Your Own Redis\" Challenge.","archived":false,"fork":false,"pushed_at":"2025-02-04T21:27:49.000Z","size":79,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T23:44:31.483Z","etag":null,"topics":["codecrafters","codecrafters-redis","redis"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farbodahm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-01-20T20:03:28.000Z","updated_at":"2025-02-23T01:39:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"a2676d60-de28-4dd9-ab59-a53e242a5677","html_url":"https://github.com/farbodahm/codecrafters-redis-go","commit_stats":null,"previous_names":["farbodahm/codecrafters-redis-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farbodahm%2Fcodecrafters-redis-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farbodahm%2Fcodecrafters-redis-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farbodahm%2Fcodecrafters-redis-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farbodahm%2Fcodecrafters-redis-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farbodahm","download_url":"https://codeload.github.com/farbodahm/codecrafters-redis-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252577114,"owners_count":21770733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["codecrafters","codecrafters-redis","redis"],"created_at":"2025-02-06T05:18:49.026Z","updated_at":"2026-02-18T15:01:55.455Z","avatar_url":"https://github.com/farbodahm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![progress-banner](https://backend.codecrafters.io/progress/redis/ecc5ac1f-3828-4f3a-9eac-4a6707d87a5d)](https://app.codecrafters.io/users/codecrafters-bot?r=2qF)\n\nMy approach to the ['Build Your Own Redis'](https://app.codecrafters.io/courses/redis/) challenge.\n\n## Features  \n\n- **Basic Commands**: \n  - `GET`\n  - `SET` (with TTL)\n  - `PING`\n  - `ECHO`  \n- **Concurrency**: Supports multiple concurrent clients  \n- **Persistence**: Loads RDB files and serves the content\n- **Replication**:  \n  - Performs replication handshake  \n  - Propagates commands to replicas  \n  - Supports the `WAIT` command  \n- **Streams**:\n  - Create streams\n  - Support `XREAD` and `XRANGE` commands\n  - Support blocking reads (`XREAD block`)\n  - Support different type of queries (with `+`, `-`, `$`, partially/fully create IDs)\n- **Transactions**:\n  - `INCR` command\n  - `MULTI` and `EXEC` commands\n  - Multiple concurrent transactions with failures within transactions \n\n## RUN\n\n- **Build**:\n  - `go build -o redis app/*.go`\n- **Basic execution**:\n  - `./redis --port 5678`\n- **Parse RDB**:\n  - `./redis --dir ./redis-data/ --dbfilename dump.rdb --port 5678`\n- **Run as replica**:\n  - `./redis --port 1234 --replicaof \"localhost 6379\"`\n  \nAfter the server is running, you can connect to it via any Redis client, Including `redis-cli`;\nEx: `redis-cli xread block 10000 streams orange 0-110`.\n\n**NOTE**: The current version fully supports RESP V2.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarbodahm%2Fcodecrafters-redis-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarbodahm%2Fcodecrafters-redis-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarbodahm%2Fcodecrafters-redis-go/lists"}