Last active
December 26, 2015 02:29
-
-
Save yosukehara/7078664 to your computer and use it in GitHub Desktop.
Embedding leofs(leo-gateway) in an application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% Embedding leo-gateway in an application | |
%% | |
ok = leofs:start(), | |
not_found = leofs:get(<<"key/1">>), | |
{ok, ETag} = leofs:put(<<"key/1">>, <<"value_1">>), | |
{ok, {ETag, Bin}} = leofs:get(<<"key/1">>), | |
ok = leofs:delete(<<"key/1">>), | |
not_found = leofs:get(<<"key/1">>), | |
ok = leofs:stop(). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rebar.config
configuration
launch