key-value數據庫 tstdb
tstdb是一種基于日志重放機制的memcached兼容的key-value數據庫,可用于需要緩存數據落地的一些場合。
它兼容memcached的客戶端(支持get,set和delete命令),支持value過期設置。讀寫性能與memcached接近。日志重放速度很快,作者測試時一億數據的reloading(key:10bytes ,value: 20 bytes)只需要2分鐘,內存占用2.1G。
項目主頁:http://www.baiduhome.net/lib/view/home/1322727404765
Introduction
1. keys are loaded into memory, and are organized as a ternary search tree
2. big values are stored on disk-based log; no disk IO for reading small values, which are less than 8 bytes
3. log file and hint file are used to reload data when restarting db server
4. very fast! both the qps and data reloading speed.
5. a memcached compatible server.
TODO LIST:
supporting prefix searching.
Have a look
http://code.google.com/p/tstdb/source/browse/
Download
Install
epoll is needed!
tar -xzf tstdb_0.2.tar.gz cd tstdb makerun the server</span>: ./tstserver
show help</span>./tstserver -h</pre>
Performance
the performance is comparable to memcached.
you cat test it by yourself. benchmark