{"id":16915705,"url":"https://github.com/i-sevostyanov/cached","last_synced_at":"2025-08-09T01:38:38.605Z","repository":{"id":91272968,"uuid":"209773067","full_name":"i-sevostyanov/cached","owner":"i-sevostyanov","description":"Cached is an in-memory cache server with a simple text-based protocol.","archived":false,"fork":false,"pushed_at":"2021-05-24T13:08:04.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T18:30:58.018Z","etag":null,"topics":["btree","cache","golang","protocol","tcp-server","thread-safe","ttl-cache"],"latest_commit_sha":null,"homepage":"","language":"Go","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/i-sevostyanov.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}},"created_at":"2019-09-20T11:17:35.000Z","updated_at":"2021-05-24T13:08:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"1f5f1aab-efd3-4c12-a3ac-46f2d7bd7305","html_url":"https://github.com/i-sevostyanov/cached","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/i-sevostyanov%2Fcached","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-sevostyanov%2Fcached/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-sevostyanov%2Fcached/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-sevostyanov%2Fcached/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i-sevostyanov","download_url":"https://codeload.github.com/i-sevostyanov/cached/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244688607,"owners_count":20493846,"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":["btree","cache","golang","protocol","tcp-server","thread-safe","ttl-cache"],"created_at":"2024-10-13T19:22:01.372Z","updated_at":"2025-03-20T20:54:09.958Z","avatar_url":"https://github.com/i-sevostyanov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Cached\nIs an in-memory cache server with a simple text-based protocol.\n\n### Features\n* TTL per key (based on BTree index)\n* Dump and Restore from disk\n* Thread-safety\n* Commands:\n    * `set \u003ckey\u003e \u003cvalue\u003e \u003cttl\u003e`\n    * `get \u003ckey\u003e`\n    * `del \u003ckey\u003e`\n    * `stats`\n    * `quit`\n\n### Why?\nFor fun and profit :-)\n\n### How to use\nYou need just start a server and connect to it from `nc`, like this:\n\n```bash\nnc 127.0.0.1 4000\n```\n\nSet value:\n```bash\nset mykey myvalue 300s\nOK\n```\n\nGet value:\n```bash\nget mykey\nmyvalue\n```\n\nDelete value:\n```bash\ndel mykey\nOK\n```\n\nShow stats:\n```bash\nstats\nHit: 865, Miss: 24, Size: 853\n```\n\n### ToDo\n* Tests and benchmarks\n* Metrics\n* Dump and restore without reflection\n* Build in GitHub Actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi-sevostyanov%2Fcached","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi-sevostyanov%2Fcached","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi-sevostyanov%2Fcached/lists"}