You are here

public function CacheProvider::save in Plug 7

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

lib/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);
}