Skip to content

rainingmaster/ssdb_with_lua

 
 

Repository files navigation

Name

ssdb_with_lua

It's fork from SSDB, and embed the power of lua into ssdb.

Client API example

--add.lua
local ret = ssdb.get("key1")
ret = ret + 1
ssdb.set("key1", ret)

use the ssdb client: lua_thread add.lua

Compile and 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 master
$ ./ssdb-server ssdb.conf

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

# ssdb command line
$ ./tools/ssdb-cli -p 8888

# stop ssdb-server
$ ./ssdb-server ssdb.conf -s stop
 # for older version
$ kill `cat ./var/ssdb.pid`

See Compile and Install wiki

LICENSE

New BSD License, a very flexible license to use.

About

Embed the Power of Lua into SSDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 87.7%
  • PHP 4.3%
  • Python 2.7%
  • COBOL 2.5%
  • Makefile 1.4%
  • Shell 0.9%
  • C 0.5%