protected function ChainCache::doSave in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/cache/lib/Doctrine/Common/Cache/ChainCache.php \Doctrine\Common\Cache\ChainCache::doSave()
Puts data into the cache.
Parameters
string $id The cache id.:
string $data The cache entry/data.:
int $lifeTime The lifetime. If != 0, sets a specific lifetime for this: cache entry (0 => infinite lifeTime).
Return value
boolean TRUE if the entry was successfully stored in the cache, FALSE otherwise.
Overrides CacheProvider::doSave
File
- vendor/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ ChainCache.php, line 94
Class
- ChainCache
- Cache provider that allows to easily chain multiple cache providers
Namespace
Doctrine\Common\CacheCode
protected function doSave($id, $data, $lifeTime = 0) {
$stored = true;
foreach ($this->cacheProviders as $cacheProvider) {
$stored = $cacheProvider
->doSave($id, $data, $lifeTime) && $stored;
}
return $stored;
}