You are here

abstract protected function CacheProvider::doSave in Plug 7

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.

3 calls to CacheProvider::doSave()
CacheProvider::deleteAll in lib/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php
Deletes all cache entries.
CacheProvider::getNamespaceVersion in lib/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php
Returns the namespace version.
CacheProvider::save in lib/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php
Puts data into the cache.
17 methods override CacheProvider::doSave()
ApcCache::doSave in lib/doctrine/cache/lib/Doctrine/Common/Cache/ApcCache.php
Puts data into the cache.
ArrayCache::doSave in lib/doctrine/cache/lib/Doctrine/Common/Cache/ArrayCache.php
Puts data into the cache.
ChainCache::doSave in lib/doctrine/cache/lib/Doctrine/Common/Cache/ChainCache.php
Puts data into the cache.
CouchbaseCache::doSave in lib/doctrine/cache/lib/Doctrine/Common/Cache/CouchbaseCache.php
Puts data into the cache.
FilesystemCache::doSave in lib/doctrine/cache/lib/Doctrine/Common/Cache/FilesystemCache.php
Puts data into the cache.

... See full list

File

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

Class

CacheProvider
Base class for cache provider implementations.

Namespace

Doctrine\Common\Cache

Code

protected abstract function doSave($id, $data, $lifeTime = 0);