Module lasp_storage_backend

Behaviours: gen_server.

This module defines the lasp_storage_backend behaviour.
Required callback functions: start_link/1, put/3, get/2, update/3, update_all/2, fold/3, reset/1.

Function Index

fold/3Fold operation.
get/2Retrieve a record from the backend.
handle_call/3
put/3Write a record to the backend.
reset/1Reset all application state.
start_link/1Start and link to calling process.
update/3In-place update given a mutation function.
update_all/2Update all objects given a mutation function.

Function Details

fold/3

fold(Ref, Function, Acc) -> any()

Fold operation.

get/2

get(Ref, Id) -> any()

Retrieve a record from the backend.

handle_call/3

handle_call(Msg, From, State) -> any()

put/3

put(Ref, Id, Record) -> any()

Write a record to the backend.

reset/1

reset(Ref) -> any()

Reset all application state.

start_link/1

start_link(Identifier) -> any()

Start and link to calling process.

update/3

update(Ref, Id, Function) -> any()

In-place update given a mutation function.

update_all/2

update_all(Ref, Function) -> any()

Update all objects given a mutation function.


Generated by EDoc