{"id":25195033,"url":"https://github.com/rvarago/toy-storage-rs","last_synced_at":"2025-04-04T15:12:24.181Z","repository":{"id":46360555,"uuid":"316637494","full_name":"rvarago/toy-storage-rs","owner":"rvarago","description":"A toy storage implemented in Rust purely for learning","archived":false,"fork":false,"pushed_at":"2021-10-23T10:02:44.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T00:41:23.507Z","etag":null,"topics":["network","protocol","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rvarago.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}},"created_at":"2020-11-28T02:00:01.000Z","updated_at":"2021-10-23T10:02:46.000Z","dependencies_parsed_at":"2022-07-25T01:16:53.944Z","dependency_job_id":null,"html_url":"https://github.com/rvarago/toy-storage-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvarago%2Ftoy-storage-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvarago%2Ftoy-storage-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvarago%2Ftoy-storage-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvarago%2Ftoy-storage-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvarago","download_url":"https://codeload.github.com/rvarago/toy-storage-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247198469,"owners_count":20900081,"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":["network","protocol","rust"],"created_at":"2025-02-10T00:40:56.923Z","updated_at":"2025-04-04T15:12:24.162Z","avatar_url":"https://github.com/rvarago.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A **toy** in-memory storage\n\nThis is a toy in-memory storage server with data exchanged over the network.\n\n\u003e DISCLAIMER: This is nothing more than a self-contained **playground** project for having some fun while learning Rust.\n\n## Wire Protocol\n\nThis is a request-response protocol over TCP, where the client initiates an exchange by sending a request to the server which then sends a response back to the client.\n\nMessages (request/response) are line-delimited.\n\n### SET\n\n- Request: `SET \u003cKEY\u003e \u003cVALUE\u003e\\n`\n- Response: `OKAY \u003cKEY\u003e\\n`\n  \n### GET\n\n- Request: `GET \u003cKEY\u003e\\n`\n- Response (Success): `OKAY \u003cKEY\u003e \u003cVALUE\u003e\\n`\n- Response (Failure): `FAIL \u003cKEY\u003e \u003cVALUE\u003e\\n`\n\n## Example Session\n\nBy simulating a client as an `nc` instance:\n\n```bash\nλ nc 127.0.0.1 8080\nGET rafael\nFAIL rafael\nSET rafael 123\nOKAY rafael\nGET rafael\nOKAY rafael 123\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvarago%2Ftoy-storage-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvarago%2Ftoy-storage-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvarago%2Ftoy-storage-rs/lists"}