{"repo":"ChandanKhamitkar/BranchDB","free":true,"listed":false,"github":"https://github.com/ChandanKhamitkar/BranchDB","clone":"git clone https://github.com/ChandanKhamitkar/BranchDB.git","description":"🌿 Branch DB is a lightweight, high-performance, and simple key-value database built in C++.","language":"C++","stars":12,"topics":["database","keyvaluestore","cpp","authentication","concurrency","inmemory-db","lru-cache","persistent-storage","ttl"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Branch DB Branch DB is a lightweight, high-performance, and simple key-value database built in C++. It offers in-memory and on-disk persistence for storing and retrieving data efficiently. This project aims to provide a basic yet powerful storage engine to experiment with low-level database concepts. Sneak Peek in 60 Seconds ( Click to watch ) Watch Video on Youtube High Level Architecture Features - Key-Value Store: Efficient storage and retrieval of key-value pairs using std::unordered map as the core in-memory data structure. - Persistence: Supports on-disk storage with WAL ( Write Ahead Logging ) for durability. - Serialization: Efficient custom binary format for encoding and decoding data - Concurrency: Reader-Writer locks for thread-safe operations - TTL: Support for setting expiry times on keys, with automatic background cleanup of expired entries. - LRU ( Least Recently Used ) Cache: Evicting least used keys, when LRU cache capacity hits. - API/CLI Support: Basic command-line interface for interacting with the database ✅ In Scope: - Basic key-value data storage engine - On-disk persistence via Write Ahead Logging - Data serialization/deserialization logic - Safe concurrent access (read/write locks) - Simple CLI interface for basic operations - Clear documentation and open-source release - LRU ( Least Recently Used ) Cache Architecture Branch DB is designed with a minimalistic architecture to focus on core database principles like storage, concurrency and durability. T","default_branch":null,"files":null,"tree":[],"storefront":"/r/ChandanKhamitkar","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ChandanKhamitkar/BranchDB/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}