Module leo_backend_db_bitcask

Handling database operation for bitcask.

References

Description

Handling database operation for bitcask

Function Index

close/1Close a bitcask data store and flush any pending writes to disk.
delete/2Delete an object from bitcask.
first/1Retrieve a first record from bitcask.
get/2Retrieve an object from bitcask.
open/1Open a new or existing bitcask datastore for read-only access.
open/2
prefix_search/4Retrieve an objects from bitcask by the keyword and the function.
put/3Insert an object into bitcask.

Function Details

close/1

close(Handler) -> ok

Close a bitcask data store and flush any pending writes to disk

delete/2

delete(Handler, Key) -> ok | {error, any()}

Delete an object from bitcask.

first/1

first(Handler) -> {ok, any()} | not_found | {error, any()}

Retrieve a first record from bitcask

get/2

get(Handler, Key) -> not_found | {ok, binary()} | {error, any()}

Retrieve an object from bitcask.

open/1

open(Path) -> {ok, pid()} | {error, any()}

Open a new or existing bitcask datastore for read-only access

open/2

open(Path, Options) -> {ok, pid()} | {error, any()}

prefix_search/4

prefix_search(Handler, Key, Fun, MaxKeys) -> {ok, [any()]} | not_found | {error, any()}

Retrieve an objects from bitcask by the keyword and the function

put/3

put(Handler, Key, Value) -> ok | {error, any()}

Insert an object into bitcask.


Generated by EDoc