Exemplo n.º 1
0
function init_memcached()
{
    global $CFG, $MCACHE;
    include_once $CFG->libdir . '/memcached.class.php';
    $MCACHE = new memcached();
    if ($MCACHE->status()) {
        return true;
    }
    unset($MCACHE);
    return false;
}