function Cache::save

Puts data into the cache.

Parameters

string $id The cache id.:

mixed $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.

1 method overrides Cache::save()
CacheProvider::save in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/CacheProvider.php
Puts data into the cache.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/Cache.php, line 68

Class

Cache
Interface for cache drivers.

Namespace

Doctrine\Common\Cache

Code

function save($id, $data, $lifeTime = 0);