1 | <?php |
||
7 | class Memcached extends AbstractCache |
||
8 | { |
||
9 | /** |
||
10 | * @var string storage key |
||
11 | */ |
||
12 | protected $key; |
||
13 | |||
14 | /** |
||
15 | * @var int|null seconds until cache expiration |
||
16 | */ |
||
17 | protected $expire; |
||
18 | |||
19 | /** |
||
20 | * @var \Memcached Memcached instance |
||
21 | */ |
||
22 | protected $memcached; |
||
23 | |||
24 | /** |
||
25 | * Constructor. |
||
26 | * |
||
27 | * @param \Memcached $memcached |
||
28 | * @param string $key storage key |
||
29 | * @param int|null $expire seconds until cache expiration |
||
30 | */ |
||
31 | 9 | public function __construct(NativeMemcached $memcached, $key = 'flysystem', $expire = null) |
|
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | 6 | public function load() |
|
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 3 | public function save() |
|
59 | } |
||
60 |