{"repo":"mrxiaozhuox/dorea","free":true,"listed":false,"github":"https://github.com/mrxiaozhuox/dorea","clone":"git clone https://github.com/mrxiaozhuox/dorea.git","description":"A Key-Value data storage system. - [ This is a practice program ]","language":"Rust","stars":134,"topics":["database","storage","rust"],"license":"MIT","category":"databases-storage","readme_excerpt":"Dorea is a key-value data storage system. It is based on the Bitcask storage model Documentation Crates.io API Doucment 简体中文 English Data Sturct Dorea have the basic data type and some compound type. - String - Number - Boolean - Binary - List \\ - Dict \\ - Tuple \\ Storage Model dorea based on the Bitcask storage model. (Log) All insert, update, delete operations are implemented as appends. When a storage file reaches a maximum capacity, it is archived and a new write file is created. Transport Protocol Dorea uses a binary length-prefixed protocol over TCP. Each frame has the following format: Field Size Description ------- ------ ------------- MAGIC 2 bytes Fixed 0xD0 0x9A , used for stream alignment and validation VERSION 1 byte Protocol version, currently 0x01 STATE 1 byte Status code: 0x00 =IGNORE, 0x01 =OK, 0x02 =ERR, 0x03 =EMPTY, 0x04 =NOAUTH LEN 4 bytes Payload length in big-endian (u32), max 16MB PAYLOAD LEN bytes Raw binary data (command text in UTF-8 or response bytes) Command arguments support double-quoted strings for values containing spaces:","default_branch":null,"files":null,"tree":[],"storefront":"/r/mrxiaozhuox","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mrxiaozhuox/dorea/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."}