1 | <?php |
||
15 | class UberMemcached implements ResourceInterface, UberStorageInterface |
||
16 | { |
||
17 | private $memcached; |
||
18 | |||
19 | public function __construct(\Memcached $memcached) |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | public function __toString() |
||
31 | |||
32 | /** |
||
33 | * @return Memcached |
||
34 | */ |
||
35 | public function getMemcached() |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function setConnection($host, $port) |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function addItem($key, $value, $expiration = null) |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function getItem($key) |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function getAllKeys() |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | public function deleteItem($key) |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function dropCache() |
||
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | public function isFresh($timestamp) |
||
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | public function getResource() |
||
114 | } |
||
115 |