public function getRemainingLifetime( $id, $attributes = array() )
    {
        foreach ( $this->storageStack as $storageConf )
        {
            $lifetime = $storageConf->storage->getRemainingLifetime(
                $id,
                $attributes
            );
            if ( $lifetime > 0 )
            {
                return $lifetime;
            }
        }
        return 0;
    }
public function getRemainingLifetime( $id, $attributes = array() )
    {
        foreach ( $this->storageStack as $storageConf )
        {
            $lifetime = $storageConf->storage->getRemainingLifetime(
                $id,
                $attributes
            );
            if ( $lifetime > 0 )
            {
                return $lifetime;
            }
        }
        return 0;
    }
public function getRemainingLifetime ( $ id , $ attributes = array ( ) ) { foreach ( $ this -> storageStack as $ storageConf ) { $ lifetime = $ storageConf -> storage -> getRemainingLifetime ( $ id , $ attributes ) ; if ( $ lifetime > 0 ) { return $ lifetime ; } } return 0 ; }
Returns the remaining lifetime for the given item ID.

This method returns the lifetime in seconds for the item identified by $item
and optionally described by $attributes. Definining the $attributes
might lead to faster results with some caches.

The first internal storage that is found for the data item is chosen to
detemine the lifetime. If no storage contains the item or the item is
outdated in all found caches, 0 is returned.

@param string $id
@param array $attributes
@return int
Returns the remaining lifetime for the given item ID .