dbhash_put - Insert a value in the database.
dbhash_put (db:pointer, key:string, value:string [,mode:integer]);
This function is used to put a key/data(nosql) in the database.
The following definitions could be used for key/data operation:
Mode can be:
%define GDBM_INSERT 0; /* Never replace old data with new. */
%define GDBM_REPLACE 1; /* Always replace old data with new. */
To use this module, you must specify the following in /usr/local/website/site.conf:
Module hash { Library : "/usr/local/lib/libsndbhash.so" Init : "sndbhash_init" }
hash = dbhash_open("/hash/test.db"); ret = dbhash_put(db:hash,key:"cookie",value:"aurhfqiuwrhf");
Written by Pierre Laplante, <laplante@sednove.com>
1.0 2015-02-09 21:24:14 laplante@sednove.com