{"id":20323572,"url":"https://github.com/soumyadas15/memify","last_synced_at":"2025-09-13T16:13:49.325Z","repository":{"id":255007416,"uuid":"847885973","full_name":"Soumyadas15/Memify","owner":"Soumyadas15","description":"Memify is a fast and lightweight in-memory data store built with C++. Inspired by Redis, it runs over a TCP socket server.","archived":false,"fork":false,"pushed_at":"2024-10-10T20:15:01.000Z","size":162,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T19:53:07.475Z","etag":null,"topics":["backend","cache","database","memory","server","socket","tcp"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Soumyadas15.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":"security/HMACUtil.cpp","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-08-26T18:24:45.000Z","updated_at":"2024-10-10T20:15:04.000Z","dependencies_parsed_at":"2024-11-14T19:43:27.443Z","dependency_job_id":null,"html_url":"https://github.com/Soumyadas15/Memify","commit_stats":null,"previous_names":["soumyadas15/memify"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Soumyadas15/Memify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soumyadas15%2FMemify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soumyadas15%2FMemify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soumyadas15%2FMemify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soumyadas15%2FMemify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Soumyadas15","download_url":"https://codeload.github.com/Soumyadas15/Memify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soumyadas15%2FMemify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274989939,"owners_count":25386552,"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-13T02:00:10.085Z","response_time":70,"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":["backend","cache","database","memory","server","socket","tcp"],"created_at":"2024-11-14T19:28:43.754Z","updated_at":"2025-09-13T16:13:49.284Z","avatar_url":"https://github.com/Soumyadas15.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Memify\n\n  \n\nMemify is a lightweight, high-performance in-memory data store implemented in C++. Inspired by Redis, Memify provides efficient key-value storage with additional features like HMAC signature verification for secure communications. This project was built from the ground up, including features such as chunk-based processing for large data handling and an LRU (Least Recently Used) caching mechanism. The idea is to add more accurate geo-spatial and time series functions.\n\n  \n\n## Features\n\n  \n\n-  **High-Performance Key-Value Storage**: Optimized for speed, made using C++.\n\n-  **Security**: Implements HMAC signature verification on both the server and client to ensure security.\n\n-  **Chunk-Based Processing**: Handles large data transfers by processing data in manageable chunks.\n\n-  **LRU Cache**: Built-in support for Least Recently Used caching to manage memory and enhance performance.\n\n  \n\n## Getting Started\n\n  \n\n### Prerequisites\n\n  \n\nTo build and run Memify, you will need:\n\n  \n\n- A C++ compiler that supports C++11 or later (e.g., GCC, Clang)\n\n- OpenSSL library for secure key generation\n\n- CMake for building the project\n\n  \n\n### Installation\n\n  \n\n1.  **Clone the Repository**\n\n  \n\n```bash\n\ngit clone https://github.com/Soumyadas15/memify.git\n\ncd memify\n\n```\n\n  \n\n2.  **Generate a Secure 32-Byte Key Using OpenSSL**\n\n  \n\nMemify requires a secure key for HMAC signature verification. Generate a 32-byte key using OpenSSL:\n\n  \n\n```bash\n\nopenssl rand -base64 32\n\n```\n\n  \n\nCopy the generated key, which will be used in the `config.ini` file.\n\n  \n\n3.  **Create a `config.ini` File**\n\n  \n\nCreate a `config.ini` file in the root directory of the project and add the following configuration:\n\n  \n\n```ini\n\n[settings]\n\nsecret_key = \"your-generated-32-byte-key\"\n\nport = \"8080\"\n\n```\n\n  \n\nReplace `\"your-generated-32-byte-key\"` with the key generated in the previous step.\n\n  \n\n4.  **Build the Project**\n\n  \n\n```bash\n\nmkdir build\n\ncd build\n\ncmake ..\n\nmake\n\n```\n\n  \n\n5.  **Run the Server**\n\n  \n\n```bash\n\n./Memify\n\n```\n\n  \n\n### Configuration\n\n  \n\nThe `config.ini` file is used to configure the server settings and security options. Ensure the paths to your TLS certificate and key files are correct, and update the `secret_key` with the secure key generated earlier.\n\n  \n\n### Usage\n\n  \n\nTo interact with Memify, you can use any framework of your choice. In your native environment, it will run on 127.0.0.1\n\n## COMMANDS:\n\nAs of now, Memify can process key-value data and Geospatial data. Also currently, you need to pass this data through a serializer.\n\n### Key-Value\nMemify can act like a key-value in memory database. You can set and get values by providing their keys. To set keys:\n\n```bash\nSET \u003ckey\u003e \u003cvalue\u003e \u003cduration\u003e\n```\n\nExample:\n\n```bash\nSET name Soumya 200\n```\n\nThis will create a key called 'name' and set it's value to Soumya. The data will be stored for 200 seconds.\n\nSimilarly to find a key,\n```bash\nGET \u003ckey\u003e\n```\nSimilarly to delete a key,\n```bash\nDELETE \u003ckey\u003e\n```\n\n\n### Geo-spatial\nMemify can act like a in memory database to compute geo-spatial data.\n\n```bash\nGEOSET \u003ckey\u003e \u003cvalue\u003e \u003clatitude\u003e \u003clongitude\u003e\n```\n\nExample:\n\n```bash\nGEOSET location1 Kolkata 22.5744 88.3629\n```\n\nThis will create a key called 'location1' and set it's name to \"Kolkata\". The coordinates would be stored as well. The data is stored on a 2-dimensional map. That means, you can add more values to the 'location1' key.\n\nUpcoming commands:\n```bash\nGEOROUTE \nGEODISTANCE \nGEORADIUS \nGEOELEVATION\n```\n\n### Time-Series\nMemify can act like a in memory database to compute time-series data.\n\n## ADDITIONAL INFO:\n\nIf you're interested in contributing to the project, you can just fork the repo. If you're new to open source, check out [how to contribute to a project](https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoumyadas15%2Fmemify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoumyadas15%2Fmemify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoumyadas15%2Fmemify/lists"}