Module cloudi_service_db

CloudI Database

Provide a simple in-memory database.

Copyright © 2013-2014 Michael Truog

Version: 1.3.3 Sep 30 2014 14:04:01 ------------------------------------------------------------------------

Behaviours: cloudi_service.

Authors: Michael Truog (mjtruog [at] gmail (dot) com).

Description

CloudI Database

Provide a simple in-memory database.

Data Types

dispatcher()

dispatcher() = cloudi_service:dispatcher() | cloudi:context()

Function Index

cloudi_service_handle_info/3
cloudi_service_handle_request/11
cloudi_service_init/3
cloudi_service_terminate/2
kv_delete/4

Delete all table values in the key-value db.

.
kv_delete/5

Delete a value in the key-value db.

.
kv_get/4

Retrieve all table values in the key-value db.

.
kv_get/5

Retrieve a table value in the key-value db.

.
kv_new/5

Store a new value in the key-value db.

.
kv_put/6

Store a table value in the key-value db.

.

Function Details

cloudi_service_handle_info/3

cloudi_service_handle_info(Request, State, X3) -> any()

cloudi_service_handle_request/11

cloudi_service_handle_request(Type, Name, Pattern, RequestInfo, Request, Timeout, Priority, TransId, Pid, State, Dispatcher) -> any()

cloudi_service_init/3

cloudi_service_init(Args, Prefix, Dispatcher) -> any()

cloudi_service_terminate/2

cloudi_service_terminate(X1, State) -> any()

kv_delete/4

kv_delete(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), Table::string() | binary(), Timeout::cloudi_service:timeout_milliseconds()) -> ok | {error, any()}

Delete all table values in the key-value db.

kv_delete/5

kv_delete(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), Table::string() | binary(), Key::binary(), Timeout::cloudi_service:timeout_milliseconds()) -> ok | {error, any()}

Delete a value in the key-value db.

kv_get/4

kv_get(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), Table::string() | binary(), Timeout::cloudi_service:timeout_milliseconds()) -> {ok, [{Key::binary(), Value::any()}]} | {error, any()}

Retrieve all table values in the key-value db.

kv_get/5

kv_get(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), Table::string() | binary(), Key::binary(), Timeout::cloudi_service:timeout_milliseconds()) -> {ok, Key::binary(), Value::any()} | {error, any()}

Retrieve a table value in the key-value db.

kv_new/5

kv_new(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), Table::string() | binary(), Value::any(), Timeout::cloudi_service:timeout_milliseconds()) -> {ok, Key::binary(), NewValue::any()} | {error, any()}

Store a new value in the key-value db.

kv_put/6

kv_put(Dispatcher::dispatcher(), Name::cloudi_service:service_name(), Table::string() | binary(), Key::binary(), Value::any(), Timeout::cloudi_service:timeout_milliseconds()) -> {ok, Key::binary(), Value::any()} | {error, any()}

Store a table value in the key-value db.


Generated by EDoc, Sep 30 2014, 14:04:01.