blob: b1ac8edf22e1abbc203f14913c0f11131328fa4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
namespace Aws;
use Psr\SimpleCache\CacheInterface as SimpleCacheInterface;
class Psr16CacheAdapter implements CacheInterface
{
/** @var SimpleCacheInterface */
private $cache;
public function __construct(SimpleCacheInterface $cache)
{
$this->cache = $cache;
}
public function get($key)
{
return $this->cache->get($key);
}
public function set($key, $value, $ttl = 0)
{
$this->cache->set($key, $value, $ttl);
}
public function remove($key)
{
$this->cache->delete($key);
}
}
|