{"id":22794497,"url":"https://github.com/blue-davinci/gored","last_synced_at":"2026-04-29T01:01:36.990Z","repository":{"id":233309554,"uuid":"786979080","full_name":"Blue-Davinci/GoRed","owner":"Blue-Davinci","description":"GoRedis is a lightweight, in-memory key-value store implemented in Go, inspired by Redis. This project demonstrates building a simple yet functional key-value store with basic command support, such as SET, GET, and HELLO","archived":false,"fork":false,"pushed_at":"2024-11-16T15:19:31.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-08T11:50:40.884Z","etag":null,"topics":["algorithms","algorithms-and-data-structures","golang","memory","memory-management","redis","testing"],"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/Blue-Davinci.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":"2024-04-15T16:56:04.000Z","updated_at":"2025-06-04T20:11:51.000Z","dependencies_parsed_at":"2024-04-15T18:13:15.538Z","dependency_job_id":"684c04ab-27d2-4d04-9f6f-306912e425f9","html_url":"https://github.com/Blue-Davinci/GoRed","commit_stats":null,"previous_names":["blue-davinci/redis-like-memory-database-in-go","blue-davinci/gored"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Blue-Davinci/GoRed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blue-Davinci%2FGoRed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blue-Davinci%2FGoRed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blue-Davinci%2FGoRed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blue-Davinci%2FGoRed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Blue-Davinci","download_url":"https://codeload.github.com/Blue-Davinci/GoRed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Blue-Davinci%2FGoRed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32405903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"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":["algorithms","algorithms-and-data-structures","golang","memory","memory-management","redis","testing"],"created_at":"2024-12-12T04:09:02.810Z","updated_at":"2026-04-29T01:01:36.973Z","avatar_url":"https://github.com/Blue-Davinci.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoRed: An In-Memory Redis-like Server in Go\n\nGoRedis is a lightweight, in-memory key-value store implemented in Go, inspired by Redis. This project demonstrates building a simple yet functional key-value store with basic command support, such as `SET`, `GET`, and `HELLO`. \n\n## Features\n- **In-Memory Key-Value Storage**: Store and retrieve data efficiently without persistence.\n- **RESP Protocol Support**: Implements a subset of the Redis Serialization Protocol (RESP).\n- **Concurrent Connections**: Handle multiple clients concurrently with Go's goroutines and channels.\n- **Configurable Server**: Easily configure the listening address for the server.\n- **Integration Testing**: Includes tests using the official Redis Go client.\n\n## Requirements\n- [Go 1.20+](https://golang.org/dl/) for building and running the server.\n\n## Getting Started\n\n### Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/Blue-Davinci/GoRed.git\n   cd goredis\n2. Use the provided `makefile` to build and run the server:\n- Build the server:\n```bash\nmake build\n```\nThis will compile the server and place the binary in the bin/ directory.\n- Run the server:\n```bash\nmake run\n```\nBy default, the server will listen on :5001. You can customize this address in the Makefile or pass it as an argument.\n\n## Usage\n1. Start the server:\n   ```bash\n   make run\n   ```\n2. Connect using redis-cli:\n```bash\nredis-cli -p 5001\n```\n3. Interact with the server:\n```bash\n127.0.0.1:5001\u003e SET name GoRedis\nOK\n127.0.0.1:5001\u003e GET name\n\"GoRedis\"\n127.0.0.1:5001\u003e HELLO\n1) \"server\"\n2) \"redis\"\n```\n\n\u003cbr /\u003e\n\n## Project Structure\n\n```markdown\n- **`main.go`**: Entry point of the server.\n- **`keyval.go`**: Implementation of the in-memory key-value store.\n- **`peer.go`**: Manages client connections.\n- **`proto.go`**: Protocol logic for RESP commands.\n- **`proto_test.go`**: Placeholder for testing protocol functionality.\n- **`server_test.go`**: Integration tests using the official Redis client.\n```\n# Development\n## Prerequisites\nInstall the dependencies using:\n```bash\ngo mod tidy\n```\n### Running Tests\nRun the tests using:\n```bash\ngo test ./...\n```\n## Configuration\nThe server can be configured using command-line flags:\n```bash\n- `--listenAddr`: Specifies the address on which the server listens for connections. Default is `:5001`.\n```\n\n\nContributions are welcome! If you have ideas for improvements or encounter issues, feel free to open an issue or a pull request.\nLicense\n\nThis project is licensed under the MIT License.\n\nEnjoy using GoRedis! 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblue-davinci%2Fgored","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblue-davinci%2Fgored","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblue-davinci%2Fgored/lists"}