Open Journal Systems
3.3.0
Zf1CacheAdapter.php
1
<?php
2
3
namespace
Guzzle\Cache
;
4
5
use
Guzzle\Common\Version
;
6
14
class
Zf1CacheAdapter
extends
AbstractCacheAdapter
15
{
19
public
function
__construct
(\Zend_Cache_Backend
$cache
)
20
{
21
Version::warn
(__CLASS__ .
' is deprecated. Upgrade to ZF2 or use PsrCacheAdapter'
);
22
$this->cache =
$cache
;
23
}
24
25
public
function
contains
($id, array $options =
null
)
26
{
27
return
$this->cache->test($id);
28
}
29
30
public
function
delete
($id, array $options =
null
)
31
{
32
return
$this->cache->remove($id);
33
}
34
35
public
function
fetch
($id, array $options =
null
)
36
{
37
return
$this->cache->load($id);
38
}
39
40
public
function
save
($id, $data, $lifeTime =
false
, array $options =
null
)
41
{
42
return
$this->cache->save($data, $id, array(), $lifeTime);
43
}
44
}
Guzzle\Cache\Zf1CacheAdapter\__construct
__construct(\Zend_Cache_Backend $cache)
Definition:
Zf1CacheAdapter.php:19
Guzzle\Cache\Zf1CacheAdapter\save
save($id, $data, $lifeTime=false, array $options=null)
Definition:
Zf1CacheAdapter.php:40
Guzzle\Common\Version\warn
static warn($message)
Definition:
Version.php:23
Guzzle\Cache\Zf1CacheAdapter
Definition:
Zf1CacheAdapter.php:14
Guzzle\Cache\Zf1CacheAdapter\fetch
fetch($id, array $options=null)
Definition:
Zf1CacheAdapter.php:35
Guzzle\Common\Version
Definition:
Version.php:8
Guzzle\Cache
Definition:
AbstractCacheAdapter.php:3
Guzzle\Cache\Zf1CacheAdapter\contains
contains($id, array $options=null)
Definition:
Zf1CacheAdapter.php:25
Guzzle\Cache\AbstractCacheAdapter
Definition:
AbstractCacheAdapter.php:8
Guzzle\Cache\AbstractCacheAdapter\$cache
$cache
Definition:
AbstractCacheAdapter.php:10
plugins
paymethod
paypal
lib
vendor
guzzle
guzzle
src
Guzzle
Cache
Zf1CacheAdapter.php
Generated on Fri Aug 28 2020 14:53:57 for Open Journal Systems by
1.8.17