Skip to content

Latest commit

 

History

History
59 lines (21 loc) · 983 Bytes

rkvs_storage_backend.md

File metadata and controls

59 lines (21 loc) · 983 Bytes

Module rkvs_storage_backend

This module defines the rkvs_storage_backend behaviour.
Required callback functions: open/2, close/1, destroy/1, contains/2, get/2, put/3, clear/2, write_batch/2, scan/4, clear_range/4, fold_keys/4, fold/4, is_empty/1.

Data Types


fold_options() = [{start_key, binary()} | {end_key, binary()} | {gt, binary()} | {gte, binary()} | {lt, binary()} | {lte, binary()} | {max, integer()}]

kv() = {Key::binary(), Value::binary()}

kvs() = [kv()]

write_ops() = [{put, Key::binary(), Value::any()} | {delete, Key::binary()} | clear]