{"id":24901392,"url":"https://github.com/severindenisenko/membase","last_synced_at":"2026-04-26T08:36:58.917Z","repository":{"id":205153163,"uuid":"713522006","full_name":"SeverinDenisenko/membase","owner":"SeverinDenisenko","description":"My key-value storage","archived":false,"fork":false,"pushed_at":"2023-11-19T20:54:35.000Z","size":9731,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T03:04:32.866Z","etag":null,"topics":["database","low-latency"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SeverinDenisenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2023-11-02T17:31:28.000Z","updated_at":"2024-03-04T02:31:43.000Z","dependencies_parsed_at":"2023-11-19T21:41:31.261Z","dependency_job_id":"bc14c3bc-b0f0-4307-b7ed-3eedfc30f0f7","html_url":"https://github.com/SeverinDenisenko/membase","commit_stats":null,"previous_names":["severindenisenko/membase"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SeverinDenisenko/membase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeverinDenisenko%2Fmembase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeverinDenisenko%2Fmembase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeverinDenisenko%2Fmembase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeverinDenisenko%2Fmembase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SeverinDenisenko","download_url":"https://codeload.github.com/SeverinDenisenko/membase/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeverinDenisenko%2Fmembase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32291091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T08:29:33.829Z","status":"ssl_error","status_checked_at":"2026-04-26T08:29:18.366Z","response_time":129,"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":["database","low-latency"],"created_at":"2025-02-01T21:16:02.814Z","updated_at":"2026-04-26T08:36:58.888Z","avatar_url":"https://github.com/SeverinDenisenko.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Membase – key-value storage solution\n\n## Why this exists?\n\nThe goal of this project is to provide simple, easy to modify and relatively fast key-value storage, written in modern C++. While alternatives like Memcached and Redis written in pure C, this project focuses on code readability and flexibility.\n\n## How to use\n\nYou can insert values using `PUT`:\n\n```\nPUT user:47:name severin\nOK\nPUT user:47:id 47\nOK\nPUT user:47:age 21\nOK\n```\n\nThen You can search:\n\n```\nFINDKEY user:47\nKEY user:47:name\nKEY user:47:age\nKEY user:47:id\nOK\n```\n\nThen `GET`:\n\n```\nGET user:47:age\nVALUE 21\n```\n\nSee section \"Commands\" for more.\n\n## Features\n\n### Modes\n\nDatabase can operate in different modes:\n- memory: store data only in-memory\n- persistent: store data only on disk\n\n### Performanse\n\nLatency for PUT \u0026 GET operations in most cases below 0.75 ms for memory mode. Extensive performanse metrics and tooling can be found in `perf` folder.\n\n## Plans\n\nCurrent plans contains:\n- Creating more effitient data-strucrure for storing key-value strings for cache\n- Replasing current persistent storage with self-developed\n- Creating flexible search functionality\n- Adding wrapper libraries for different programming languages (C, C++, Python, Rust, Go, are priorities for now)\n\n## Commands\n\n- `GET [key]` Returns the value if exists, error otherwise\n- `PUT [key] [value]` Insert pair, key and value can be any sequence of symbols (not control symbols or spaces)\n- `REMOVE [key]` Removes key form storage\n- `WIPE` Completely erases database\n- `FINDKEY [search]` Returns list of keys that start with specific sequencee in lexical order\n- `FINDVALUE [search]` Returns list of keys, values of such starts with specific sequence in lexical order\n\n## Config\n\nYou have to provide app with argument `-config config.json`. Example config:\n\n```json\n{\n    \"mode\": \"persistent\",\n    \"server\": {\n        \"host\": \"127.0.0.1\",\n        \"port\": 2222,\n        \"max_request_length\": 4098\n    },\n    \"cache\": {\n        \"buckets\": 1048576,\n        \"memory\": 1073741824\n    },\n    \"persistent\": {\n        \"path\": \"/tmp/testdb\",\n        \"create_if_missing\": true\n    }\n}\n```\n\nWhere:\n\n- `mode` Can be `persistent` or `memory`\n- `server`\n- - `host` \u0026 `port` Accept connections from\n- - `max_request_length` Maximum possible summary length of command\n- `cache`\n- - `buckets` Default number of buckets in hash table (can grow in runtime)\n- - `memory` Maximum available memory to the system. If memory is full, the majority of operations will result in errors\n- `persistent`\n- - `path` Path to persistent storage\n- - `create_if_missing` If `false` and database does not exist, result if failure\n\n## Contributing\n\nAll contributions that address issues or implement features are welcome. If you encountered bugs or have some ideas you welcome to create an issue on github.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseverindenisenko%2Fmembase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseverindenisenko%2Fmembase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseverindenisenko%2Fmembase/lists"}