/lua-tokyocabinet

Tokyo Cabinet Lua binding, very good hash/B+tree/fixed length/table/abstract local DBM.

Primary LanguageC

About

Tokyo Cabinet from Tokyo Cabinet: a modern implementation of DBM, version 1.4.48, with Lua binding from slact/lua-tokyocabinet-static.

Origin Lua binding export tokyocabinet to global ENV, I modified this, make it return table.

Build

please modify build.sh for Lua/LuaJIT library path.

$ ./build.sh tokyocabinet # build tokyocabinet DBM
$ ./build.sh lua -I/usr/local/include -L/usr/local/lib -lluajit # build Lua library

and run test

$ sh test.sh

Usage

refers to lua-example, build.sh it and run test.sh to get a glance.