You are here

public function CacheProvider::save in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php \Doctrine\Common\Cache\CacheProvider::save()

Puts data into the cache.

Parameters

string $id The cache id.:

mixed $data The cache entry/data.:

int $lifeTime The cache 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 Cache::save

File

vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php, line 113

Class

CacheProvider
Base class for cache provider implementations.

Namespace

Doctrine\Common\Cache

Code

public function save($id, $data, $lifeTime = 0) {
  return $this
    ->doSave($this
    ->getNamespacedId($id), $data, $lifeTime);
}