function

dbhash_get . dbhash . sncode

VERSIONlatest Return a value from the database.

DBHASH_GET(1e)

NAME

dbhash_GET - Return a value from the database.

SYNOPSIS

dbhash_get (db:pointer, key:string);

DESCRIPTION

This function retreive a key from the database.

PARAMETERS

db
Pointer to database
key
Key

RETURN

value or null if not found

MODULES

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"
}

EXAMPLES

hash = dbhash_open("/hash/test.db");

ret = dbhash_put(db:hash,key:"cookie",value:"aurhfqiuwrhf");

dbhash_get(db:hash,key:"cookie");

dbhash_close(hash);

AUTHOR

Written by Pierre Laplante, <laplante@sednove.com>