Current section
Files
Jump to
Current section
Files
include/telega@storage_KeyValueStorage.hrl
-record(key_value_storage, {
get :: fun((binary()) -> {ok, gleam@option:option(binary())} |
{error, any()}),
set :: fun((binary(), binary()) -> {ok, nil} | {error, any()}),
set_with_ttl :: fun((binary(), binary(), integer()) -> {ok, nil} |
{error, any()}),
delete :: fun((binary()) -> {ok, nil} | {error, any()}),
scan :: fun((binary()) -> {ok, list(binary())} | {error, any()})
}).