You are here

public function Cache::save in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/lib/Doctrine/Common/Cache/Cache.php \Doctrine\Common\Cache\Cache::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.

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

File

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

Class

Cache
Interface for cache drivers.

Namespace

Doctrine\Common\Cache

Code

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