Skip to content

Instantly share code, notes, and snippets.

@yrashk
Created November 28, 2009 09:29
Show Gist options
  • Save yrashk/244458 to your computer and use it in GitHub Desktop.
Save yrashk/244458 to your computer and use it in GitHub Desktop.
1> DB = tokyocabinet:tcadbnew().
4298116592
2>
2> tokyocabinet:tcadbopen(DB, "test.tcb#mode=wc").
ok
3> tokyocabinet:tcadbput(DB, <<"hello">>, <<"world">>).
ok
4> tokyocabinet:tcadbget(DB, <<"hello">>).
<<"world">>
5> tokyocabinet:tcadbget(DB, <<"world">>).
notfound
6> tokyocabinet:tcadbclose(DB).
ok
7> tokyocabinet:tcadbdel(DB).
ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment