Project

General

Profile

Bug #20419 ยป patch_11079.diff

Administrator Admin, 2009-05-13 21:45

View differences:

t3lib/cache/frontend/class.t3lib_cache_frontend_stringfrontend.php (working copy)
* @return void
* @author Karsten Dambekalns <karsten@typo3.org>
*/
public function set($entryIdentifier, $string, $tags = array()) {
public function set($entryIdentifier, $string, $tags = array(), $lifetime = NULL) {
if (!$this->isValidEntryIdentifier($entryIdentifier)) {
throw new InvalidArgumentException(
'"' . $entryIdentifier . '" is not a valid cache entry identifier.',
......
}
}
$this->backend->set($entryIdentifier, $string, $tags);
$this->backend->set($entryIdentifier, $string, $tags, $lifetime);
}
/**
t3lib/cache/frontend/interfaces/interface.t3lib_cache_frontend_frontend.php (working copy)
* @param array Tags to associate with this cache entry
* @return void
*/
public function set($entryIdentifier, $data, $tags = array());
public function set($entryIdentifier, $data, $tags = array(), $lifetime = NULL);
/**
* Finds and returns data from the cache.
t3lib/cache/frontend/class.t3lib_cache_frontend_variablefrontend.php (working copy)
* @author Robert Lemke <robert@typo3.org>
* @author Karsten Dambekalns <karsten@typo3.org>
*/
public function set($entryIdentifier, $variable, $tags = array()) {
public function set($entryIdentifier, $variable, $tags = array(), $lifetime = NULL) {
if (!$this->isValidEntryIdentifier($entryIdentifier)) {
throw new InvalidArgumentException(
'"' . $entryIdentifier . '" is not a valid cache entry identifier.',
......
}
}
$this->backend->set($entryIdentifier, serialize($variable), $tags);
$this->backend->set($entryIdentifier, serialize($variable), $tags, $lifetime);
}
/**
    (1-1/1)