Open Journal Systems  3.3.0
DoctrineCacheAdapter.php
1 <?php
2 
3 namespace Guzzle\Cache;
4 
5 use Doctrine\Common\Cache\Cache;
6 
13 {
17  public function __construct(Cache $cache)
18  {
19  $this->cache = $cache;
20  }
21 
22  public function contains($id, array $options = null)
23  {
24  return $this->cache->contains($id);
25  }
26 
27  public function delete($id, array $options = null)
28  {
29  return $this->cache->delete($id);
30  }
31 
32  public function fetch($id, array $options = null)
33  {
34  return $this->cache->fetch($id);
35  }
36 
37  public function save($id, $data, $lifeTime = false, array $options = null)
38  {
39  return $this->cache->save($id, $data, $lifeTime !== false ? $lifeTime : 0);
40  }
41 }
Guzzle\Cache\DoctrineCacheAdapter\fetch
fetch($id, array $options=null)
Definition: DoctrineCacheAdapter.php:32
Guzzle\Cache\DoctrineCacheAdapter\__construct
__construct(Cache $cache)
Definition: DoctrineCacheAdapter.php:17
Guzzle\Cache\DoctrineCacheAdapter\contains
contains($id, array $options=null)
Definition: DoctrineCacheAdapter.php:22
Guzzle\Cache\DoctrineCacheAdapter
Definition: DoctrineCacheAdapter.php:12
Guzzle\Cache
Definition: AbstractCacheAdapter.php:3
Guzzle\Cache\DoctrineCacheAdapter\save
save($id, $data, $lifeTime=false, array $options=null)
Definition: DoctrineCacheAdapter.php:37
Guzzle\Cache\AbstractCacheAdapter
Definition: AbstractCacheAdapter.php:8
Guzzle\Cache\AbstractCacheAdapter\$cache
$cache
Definition: AbstractCacheAdapter.php:10