Behaviours: gen_server, lasp_storage_backend.
eredis() = term()
id() = binary() | {binary(), type()}
metadata() = orddict:orddict()
pending_threshold() = {threshold, read | wait, pid(), type(), threshold()}
store() = ets:tid() | atom() | reference() | pid()
threshold() = value() | {strict, value()}
type() = term()
value() = term()
variable() = #dv{value = value(), waiting_delta_threads = [pending_threshold()], waiting_threads = [pending_threshold()], lazy_threads = [pending_threshold()], type = type(), metadata = metadata(), delta_counter = non_neg_integer(), delta_map = orddict:orddict(), delta_ack_map = orddict:orddict()}
| fold/3 | Fold operation. |
| get/2 | Retrieve a record from the backend. |
| put/3 | Write a record to the backend. |
| reset/1 | Reset all application state. |
| start_link/1 | Start and link to calling process. |
| update/3 | In-place update given a mutation function. |
| update_all/2 | Update all objects given a mutation function. |
fold(Eredis::store(), Function::function(), Acc::term()) -> {ok, term()}
Fold operation.
get(Eredis::eredis(), Id::id()) -> {ok, variable()} | {error, not_found} | {error, atom()}
Retrieve a record from the backend.
put(Eredis::eredis(), Id::id(), Record::variable()) -> ok | {error, atom()}
Write a record to the backend.
reset(Eredis::store()) -> ok
Reset all application state.
start_link(Prefix::atom()) -> {ok, pid()}
Start and link to calling process.
In-place update given a mutation function.
update_all(Eredis::eredis(), Function::function()) -> {ok, term()}
Update all objects given a mutation function.
Generated by EDoc