public function getRemainingLifetime( $id, $attributes = array() )
    {
        if ( count( $found = $this->search( $id, $attributes ) ) > 0 ) 
        {
            $identifier = $found[0][2];
            return $this->calcLifetime( $identifier );
        }
        return 0;
    }
public function getRemainingLifetime( $id, $attributes = array() )
    {
        if ( count( $found = $this->search( $id, $attributes ) ) > 0 ) 
        {
            $identifier = $found[0][2];
            return $this->calcLifetime( $identifier );
        }
        return 0;
    }
public function getRemainingLifetime ( $ id , $ attributes = array ( ) ) { if ( count ( $ found = $ this -> search ( $ id , $ attributes ) ) > 0 ) { $ identifier = $ found [ 0 ] [ 2 ] ; return $ this -> calcLifetime ( $ identifier ) ; } return 0 ; }
Returns the time in seconds which remains for a cache object, before it
gets outdated. In case the cache object is already outdated or does not
exists, this method returns 0.

@param string $id The item ID
@param array(string=>string) $attributes Attributes describing the data
@return int The remaining lifetime (0 if it does not exist or outdated)
Returns the time in seconds which remains for a cache object before it gets outdated . In case the cache object is already outdated or does not exists this method returns 0 .