SSDB is key-value(zset, hash, list) storage server, with Google LevelDB as storage engine, its goal is to replace Redis when encounter large sum of data that won’t fits the server’s memory.
https://github.com/ideawu/ssdb
SSDB Docs: http://ssdb.io/docs/
SSDB’s main features:
- Uses Google LevelDB as storage engine
- Master-slave replication, recover from break point after network failure
- Online backup through network
- Very suitable for storing collection data
- Uses small RAM
PHP API
<?php require_once('SSDB.php'); $ssdb = new SimpleSSDB('127.0.0.1', 8888); $resp = $ssdb->set('key', '123'); $resp = $ssdb->get('key'); echo $resp; // output: 123
PHP API Docs: http://ssdb.io/docs/php/
SSDB vs Redis
backend_sync.cpp里面有一段
if(type == BinlogType::MIRROR && this->is_mirror){
if(this->last_seq – this->last_noop_seq >= 1000){
this->noop();
return 1;
}else{
continue;
}
}
请问下,这个是怎么考虑的呢? Reply
setbit,的key,通过get拿到的结果,reids的话是可以通过位与得到每一位是否有值,在这边这种方式行不通,我想知道通过get拿到的是一个怎样的格式;
没用的时候觉得差别不大,越用越不是那么回事。。。。 Reply
My open source project, BTCplex (https://btcplex.com / https://github.com/tsileo/btcplex ), an open source Bitcoin block chain browser written in Go, is using SSDB, you may be interested! Reply