1 | <?php |
||
8 | class Memcached implements HandlerInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var \Memcached |
||
12 | */ |
||
13 | protected $memcached; |
||
14 | |||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | protected $ttl; |
||
19 | |||
20 | /** |
||
21 | * Memcached constructor. |
||
22 | * |
||
23 | * @param \Memcache|MemcachedStore $memcached |
||
24 | * @param int $ttl |
||
25 | */ |
||
26 | public function __construct(\Memcached $memcached, $ttl) |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function has($cacheKey) |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function get($cacheKey) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function set($cacheKey, $data) |
||
70 | } |
||
71 |