Key/Value Store package object

This object provides an in memory Key/Value (KV) store engine. It allow the creation of many instances across the service, is thread safe and can be used inside any callback or customized worker. This package is a wrapper of the third party Unqlite KV store which is distributed with Duda I/O stack.


In order to make use of kv package, two simple steps are required: the first one is to include the package header file on top of your code, then perform an explicit package inside duda_main() function.


/* Include package header */
#include "packages/kv/kv.h"

int duda_main()
    duda_load_package(kv, "kv");
    return 0;

Once the package is loaded, you can use any methods from your callbacks in the following way: