tstdbkey-value数据库

联合创作 · 2023-10-01 00:38

tstdb是一种基于日志重放机制的memcached兼容的key-value数据库,可用于需要缓存数据落地的一些场合。

它兼容memcached的客户端(支持get,set和delete命令),支持value过期设置。读写性能与memcached接近。日志重放速度很快,作者测试时一亿数据的reloading(key:10bytes ,value: 20 bytes)只需要2分钟,内存占用2.1G。

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

tstdb_0.2.tar.gz

Install

epoll is needed!

tar -xzf tstdb_0.2.tar.gz
cd tstdb
make

run the server: ./tstserver 

show help./tstserver -h

Performance

the performance is comparable to memcached.

you cat test it by yourself. benchmark

浏览 9
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报