{"id":30900497,"url":"https://github.com/jollyboss123/pegasus","last_synced_at":"2026-05-10T16:02:02.508Z","repository":{"id":234113208,"uuid":"788287912","full_name":"jollyboss123/pegasus","owner":"jollyboss123","description":"a naive java implementation of a redis server","archived":false,"fork":false,"pushed_at":"2024-04-22T03:31:42.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-22T04:51:24.839Z","etag":null,"topics":["java","redis","redis-server","virtual-threads-java-21"],"latest_commit_sha":null,"homepage":"","language":"Java","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/jollyboss123.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}},"created_at":"2024-04-18T06:07:27.000Z","updated_at":"2024-04-22T04:51:33.806Z","dependencies_parsed_at":"2024-04-22T04:51:30.366Z","dependency_job_id":null,"html_url":"https://github.com/jollyboss123/pegasus","commit_stats":null,"previous_names":["jollyboss123/j-redis","jollyboss123/hermes"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jollyboss123/pegasus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jollyboss123%2Fpegasus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jollyboss123%2Fpegasus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jollyboss123%2Fpegasus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jollyboss123%2Fpegasus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jollyboss123","download_url":"https://codeload.github.com/jollyboss123/pegasus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jollyboss123%2Fpegasus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274249157,"owners_count":25249387,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["java","redis","redis-server","virtual-threads-java-21"],"created_at":"2025-09-09T05:25:26.648Z","updated_at":"2026-05-10T16:01:57.460Z","avatar_url":"https://github.com/jollyboss123.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pegasus\n\npegasus is a naive Java implementation of a Redis server that can be connected to using the Jedis client.\n\n## Installation and Setup\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/your-username/pegasus.git\n   ```\n\n2. Build the project using maven:\n\n    ```bash\n    cd j-redis\n    mvn clean package\n    ```\n\n3. Run the pegasus server\n\n    ```bash\n    java -jar target/j-redis.jar\n    ```\n   \n## Usage\n### Using Jedis Client\nYou can connect to the j-redis server using the Jedis client as follows:\n```java\ntry (Jedis jedis = new Jedis(\"localhost\", \u003cport\u003e)) {\n    jedis.set(\"hello\", \"world\");\n    String value = jedis.get(\"hello\");\n    jedis.get(\"nonexistent\");\n}\n```\n\n### Sending Commands Manually\nAlternatively, you can send Redis commands manually:\n#### Set Command\n```bash\nprintf \"*3\\r\\n\\$3\\r\\nSET\\r\\n\\$5\\r\\nhello\\r\\n\\$5\\r\\nworld\\r\\n\" | nc localhost \u003cport\u003e\n```\n\n#### Get Command\n```bash\nprintf \"*3\\r\\n\\$3\\r\\nGET\\r\\n\\$5\\r\\nhello\\r\\n\" | nc localhost \u003cport\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjollyboss123%2Fpegasus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjollyboss123%2Fpegasus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjollyboss123%2Fpegasus/lists"}