SSDB

A high performance NoSQL database supporting many data structures, an alternative to Redis.

View on GitHub       Download (1.8.0)

Features

  • An alternative to Redis, 100x Redis
  • LevelDB client-server support, written in C/C++
  • Redis API compatible, Redis clients are supported
  • Designed to store collection data, such as list, hash, zset...
  • Client API supports including C++, PHP, Python, Java, Go
  • Persistent queue service
  • Replication(master-slave), load balance

SSDB vs Redis

PHP Usage

<?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 Doc

Install

wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip
unzip master
cd ssdb-master
make
# optional, install ssdb in /usr/local/ssdb
sudo make install

Start

# start master
./ssdb-server ssdb.conf

# or start as daemon
./ssdb-server -d ssdb.conf

Performance

Benchmarks are taken by ssdb-bench(SSDB) and redis-benchmark(Redis).

LICENSE

SSDB is licensed under New BSD License, a very flexible license to use.