dbhash_exist - Check if a key exist in the database
dbhash_exist (db:pointer, key:string);
This function check a key from the database.
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"); dbhash_get(db:hash,key:"cookie"); if dbhash_exist(db:hash,key:"cookie") then ... endif dbhash_close(hash);
Written by Pierre Laplante, <laplante@sednove.com>
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
1.0 2014-09-09 21:24:14 laplante@sednove.com