public function Cache::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.
1 method overrides Cache::save()
- CacheProvider::save in lib/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ CacheProvider.php - Puts data into the cache.
File
- lib/
doctrine/ cache/ lib/ Doctrine/ Common/ Cache/ Cache.php, line 76
Class
- Cache
- Interface for cache drivers.
Namespace
Doctrine\Common\CacheCode
public function save($id, $data, $lifeTime = 0);