Skip to content

Commit f90f0bb

Browse files
committed
delete -> del
1 parent b664a14 commit f90f0bb

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/Cache/Engine/RedisClusterEngine.php

+19-19
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,25 @@ public function init(array $config = [])
5959
return $this->_connect();
6060
}
6161

62+
/**
63+
* {@inheritdoc}
64+
*/
65+
public function clear($check)
66+
{
67+
if ($check) {
68+
return true;
69+
}
70+
71+
$keys = $this->_Redis->keys($this->_config['prefix'] . '*');
72+
$result = [];
73+
74+
foreach ($keys as $key) {
75+
$result[] = $this->_Redis->del($key) > 0;
76+
}
77+
78+
return !in_array(false, $result);
79+
}
80+
6281
/**
6382
* {@inheritdoc}
6483
*/
@@ -89,23 +108,4 @@ protected function _connect()
89108

90109
return true;
91110
}
92-
93-
/**
94-
* {@inheritdoc}
95-
*/
96-
public function clear($check)
97-
{
98-
if ($check) {
99-
return true;
100-
}
101-
102-
$keys = $this->_Redis->keys($this->_config['prefix'] . '*');
103-
$result = [];
104-
105-
foreach ($keys as $key) {
106-
$result[] = $this->_Redis->delete($key) > 0;
107-
}
108-
109-
return !in_array(false, $result);
110-
}
111111
}

0 commit comments

Comments
 (0)