SSDB 是一个 C/C++ 语言开发的高性能 NoSQL 数据库, 支持 KV, list, map(hash), zset(sorted set),qlist(队列) 等数据结构, 用来替代或者与 Redis 配合存储十亿级别列表的数据.
SSDB 是稳定的, 生产环境使用的, 已经在许多互联网公司得到广泛使用, 如奇虎 360, TOPGAME.
特性
- 替代 Redis 数据库, Redis 的 100 倍容量
- LevelDB 网络支持, 使用 C/C++ 开发
- Redis API 兼容, 支持 Redis 客户端
- 适合存储集合数据, 如kv, list, hashtable, zset,hset,qlist...
- 客户端 API 支持的语言包括: C++, PHP, Python, Java, Go
- 持久化的队列服务
- 主从复制, 负载均衡
PHP api使用示例
- <?phprequire_once('SSDB.php');$ssdb = new SimpleSSDB('127.0.0.1', 8888);$resp = $ssdb->set('key', '123');$resp = $ssdb->get('key');echo $resp; // output: 123
快速安装
- wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zipunzip mastercd ssdb-mastermake
optional, install ssdb in /usr/local/ssdb
sudo make install
启动
- # start master./ssdb-server ssdb.conf
- #or start as daemon
- ./ssdb-server -d ssdb.conf
性能对比
许可协议
SSDB 采用 New BSD License 许可协议, 一个非常宽松灵活的协议.
相关链接
项目github主页: https://github.com/ideawu/ssdb
快速入门文档:PDF格式入门文档
官方文档:http://ssdb.io/docs/zh_cn/index.html
SSDB API文档
English:http://www.ideawu.com/ssdb/docs/php/
中文:http://www.ideawu.com/ssdb/docs/zh_cn/php/
Redis:http://redis.io/
PHP 客户端 API 文档(中文):http://ssdb.io/docs/zh_cn/php/index.html
C++ 客户端 API 文档(英文):http://ssdb.io/docs/cpp/index.html
Java 客户端 API 文档(英文):http://ssdb.io/docs/java/index.html
Go 客户端 API 文档(英文):http://ssdb.io/docs/go/index.html
转载本站内容时,请务必注明来自W3xue,违者必究。