File tree 1 file changed +19
-19
lines changed
1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,25 @@ public function init(array $config = [])
59
59
return $ this ->_connect ();
60
60
}
61
61
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
+
62
81
/**
63
82
* {@inheritdoc}
64
83
*/
@@ -89,23 +108,4 @@ protected function _connect()
89
108
90
109
return true ;
91
110
}
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
- }
111
111
}
You can’t perform that action at this time.
0 commit comments