private function updateExpireTag($tag, $lifetime = null)
    {
        try {
            if (isset($this->_hashmap[$tag])) {
                foreach (array_keys($this->_hashmap[$tag]) as $key) {
                    $value = $this->load($key);
                    if ($value) {
                        $this->save($key, $value, $lifetime, $tag);
                    }
                }

                return true;
            }
        } catch (\Exception $e) {
            $this->log('warning', \sprintf('Unable to update cache ttl for tag %s : %s', $tag, $e->getMessage()));

            return false;
        }

        return false;
    }
private function updateExpireTag($tag, $lifetime = null)
    {
        try {
            if (isset($this->_hashmap[$tag])) {
                foreach (array_keys($this->_hashmap[$tag]) as $key) {
                    $value = $this->load($key);
                    if ($value) {
                        $this->save($key, $value, $lifetime, $tag);
                    }
                }

                return true;
            }
        } catch (\Exception $e) {
            $this->log('warning', \sprintf('Unable to update cache ttl for tag %s : %s', $tag, $e->getMessage()));

            return false;
        }

        return false;
    }
private function updateExpireTag ( $ tag , $ lifetime = null ) { try { if ( isset ( $ this -> _hashmap [ $ tag ] ) ) { foreach ( array_keys ( $ this -> _hashmap [ $ tag ] ) as $ key ) { $ value = $ this -> load ( $ key ) ; if ( $ value ) { $ this -> save ( $ key , $ value , $ lifetime , $ tag ) ; } } return true ; } } catch ( \ Exception $ e ) { $ this -> log ( 'warning' , \ sprintf ( 'Unable to update cache ttl for tag %s : %s' , $ tag , $ e -> getMessage ( ) ) ) ; return false ; } return false ; }
Updates the TTL for all cache records associated to provided tag.

@param string $tag
@param int    $lifetime

@return boolean TRUE if cache is removed FALSE otherwise
Updates the TTL for all cache records associated to provided tag .