1 | <?php /** MicroMemcachedDriver */ |
||
20 | class MemcachedDriver extends BaseCacheDriver |
||
21 | { |
||
22 | /** @var \Memcache|\Memcached $driver driver memcache(d) */ |
||
23 | protected $driver; |
||
24 | |||
25 | |||
26 | /** |
||
27 | * Constructor |
||
28 | * |
||
29 | * @access public |
||
30 | * |
||
31 | * @param IContainer $container |
||
32 | * @param array $config config array |
||
33 | * |
||
34 | * @result void |
||
35 | * @throws Exception |
||
36 | */ |
||
37 | public function __construct(IContainer $container, array $config = []) |
||
77 | |||
78 | /** |
||
79 | * @inheritdoc |
||
80 | */ |
||
81 | public function check() |
||
85 | |||
86 | /** |
||
87 | * Destructor |
||
88 | * |
||
89 | * @access public |
||
90 | * @result void |
||
91 | */ |
||
92 | public function __destruct() |
||
98 | |||
99 | /** |
||
100 | * @inheritdoc |
||
101 | */ |
||
102 | public function get($name) |
||
108 | |||
109 | /** |
||
110 | * @inheritdoc |
||
111 | */ |
||
112 | public function set($name, $value, $duration = 0) |
||
127 | |||
128 | /** |
||
129 | * @inheritdoc |
||
130 | */ |
||
131 | public function delete($name) |
||
135 | |||
136 | /** |
||
137 | * @inheritdoc |
||
138 | */ |
||
139 | public function clean() |
||
143 | |||
144 | /** |
||
145 | * @inheritdoc |
||
146 | */ |
||
147 | public function info() |
||
151 | |||
152 | /** |
||
153 | * @inheritdoc |
||
154 | */ |
||
155 | public function getMeta($id) |
||
166 | |||
167 | /** |
||
168 | * @inheritdoc |
||
169 | */ |
||
170 | public function increment($name, $offset = 1) |
||
174 | |||
175 | /** |
||
176 | * @inheritdoc |
||
177 | */ |
||
178 | public function decrement($name, $offset = 1) |
||
182 | } |
||
183 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: