1 | <?php |
||
7 | class Stash 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 \Stash\Pool Stash pool instance |
||
21 | */ |
||
22 | protected $pool; |
||
23 | |||
24 | /** |
||
25 | * Constructor. |
||
26 | * |
||
27 | * @param \Stash\Pool $pool |
||
28 | * @param string $key storage key |
||
29 | * @param int|null $expire seconds until cache expiration |
||
30 | */ |
||
31 | 9 | public function __construct(Pool $pool, $key = 'flysystem', $expire = null) |
|
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | 6 | public function load() |
|
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | 3 | public function save() |
|
60 | } |
||
61 |