public function garbageCollection($namespace, $lifetime)
    {
        // Run successful?
        $result = true;

        if ($this->getConnection() !== null) {
            $result = $this->doGarbageCollection($namespace, $lifetime);
        }

        // Return the result of the operation
        return $result;
    }
public function garbageCollection($namespace, $lifetime)
    {
        // Run successful?
        $result = true;

        if ($this->getConnection() !== null) {
            $result = $this->doGarbageCollection($namespace, $lifetime);
        }

        // Return the result of the operation
        return $result;
    }
public function garbageCollection ( $ namespace , $ lifetime ) { // Run successful? $ result = true ; if ( $ this -> getConnection ( ) !== null ) { $ result = $ this -> doGarbageCollection ( $ namespace , $ lifetime ) ; } // Return the result of the operation return $ result ; }
deletes all expired files

This method is intend to delete all expired files.
Garbage collection for files is a rather "expensive", "long time" operation. All files in the cache
directory have to be examined which means that they must be opened for reading, the expiration date has
to be read from them and if neccessary they have to be unlinked (removed). If you have a user comment
for a good default gc probability please add it to to the inline docs.

@param string $namespace The namespace to delete items from
@param int    $lifetime  The maximum age for an entry of the cache

@author Benjamin Carl <opensource@clickalicious.de>
@return bool The result of the operation
@access public
@throws Doozr_Cache_Service_Exception
deletes all expired files