Skip to content

Commit 6b6592a

Browse files
committed
Fixed issue #175
1 parent 45a5a28 commit 6b6592a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

phpfastcache/3.0.0/abstract.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,15 @@ public function getInfoMulti($list = array()) {
175175
return $res;
176176
}
177177

178-
public function deleteMulti($list = array()) {
179-
foreach($list as $array) {
180-
$this->delete($array[0], isset($array[1]) ? $array[1] : array());
178+
public function deleteMulti($list = array(), $option = array()) {
179+
foreach($list as $item) {
180+
if(is_array($item) && count($item) === 2){
181+
$this->delete($item[0], $item[1]);
182+
}else if(is_string($item)){
183+
$this->delete($item, $option);
184+
}else{
185+
throw new Exception('Invalid values passed to deleteMulti()');
186+
}
181187
}
182188
}
183189

0 commit comments

Comments
 (0)