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.
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
refers to lua-example, build.sh it and run test.sh to get a glance.