Back to index

d-push  2.0
Public Member Functions | Public Attributes | Private Attributes
userCache Class Reference

List of all members.

Public Member Functions

 open ($filename)
 close ()
 write ($key, $value)
 delete ($key)
 purge ()
 find ($key)

Public Attributes


Private Attributes


Detailed Description

Definition at line 3317 of file kolab.php.

Member Function Documentation

Definition at line 3332 of file kolab.php.

userCache::delete ( key)

Definition at line 3352 of file kolab.php.

            if (dba_exists ($key, $this->_id)) {
                return dba_delete ($key, $this->_id);
            return 1;
userCache::find ( key)

Definition at line 3365 of file kolab.php.

            return dba_fetch($key,$this->_id);
userCache::open ( filename)

Definition at line 3321 of file kolab.php.

            $this->_id = dba_open ($filename.".cache", "cl");

            if (!$this->_id) {
                $this->_lastError = "failed to open $filename";
                return false;
            return true;

Definition at line 3359 of file kolab.php.



userCache::write ( key,

Definition at line 3336 of file kolab.php.

            $oldvalue=dba_fetch($key, $this->_id);
            if ( $oldvalue == $value)
                //the key already exist and the value is the same we do nothing
                return 1;
            if ($oldvalue) 
                //the key exist but the value change
            return dba_insert($key,$value, $this->_id);


Member Data Documentation

Definition at line 3318 of file kolab.php.

userCache::$_id [private]

Definition at line 3319 of file kolab.php.

Definition at line 3320 of file kolab.php.

The documentation for this class was generated from the following file: