用的是诺顿的开源库,参考url来自这里
下载
git clone git@github.com:/norton/lets.git
编译
cd lets
./rebar get-deps
./rebar compile
cd ebin
erl -pa ../deps/*/ebin
测试
application:start(sasl).
application:start(lets). OptsDB = [{path, "mytable"}, create_if_missing],
lets:new(mytable, [named_table, compressed, {db, OptsDB}]).
lets:insert(mytable, {"hi", "hello"}).
lets:insert(mytable, {"bye", "goodbye"}).
lets:lookup(mytable, "hi").