1 | <?php |
||
11 | class Memcache extends BaseDriver |
||
12 | { |
||
13 | /** |
||
14 | * @var \Memcache |
||
15 | */ |
||
16 | protected $memcache; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $prefix; |
||
22 | |||
23 | /** |
||
24 | * @param \Memcache $memcache |
||
25 | * @param string $prefix |
||
26 | */ |
||
27 | public function __construct(\Memcache $memcache, $prefix) |
||
32 | |||
33 | /** |
||
34 | * @param string $key |
||
35 | * |
||
36 | * @return \DateTime|null |
||
37 | */ |
||
38 | public function get($key) |
||
47 | |||
48 | /** |
||
49 | * @param string $key |
||
50 | * @param \DateTime $time |
||
51 | * |
||
52 | * @return bool |
||
53 | */ |
||
54 | public function set($key, \DateTime $time) |
||
63 | |||
64 | /** |
||
65 | * @param string $key |
||
66 | * |
||
67 | * @return bool |
||
68 | */ |
||
69 | public function remove($key) |
||
73 | } |
||
74 |