File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ protected function driverClear()
129
129
*/
130
130
protected function driverConnect ()
131
131
{
132
+ $ this ->instance = new MemcacheSoftware ();
132
133
$ servers = (!empty ($ this ->config [ 'servers ' ]) && is_array ($ this ->config [ 'servers ' ]) ? $ this ->config [ 'servers ' ] : []);
133
134
if (count ($ servers ) < 1 ) {
134
135
$ servers = [
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ public function __construct(array $config = [])
45
45
if (!$ this ->driverCheck ()) {
46
46
throw new phpFastCacheDriverCheckException (sprintf (self ::DRIVER_CHECK_FAILURE , $ this ->getDriverName ()));
47
47
} else {
48
- $ this ->instance = new MemcachedSoftware ();
49
48
$ this ->driverConnect ();
50
49
}
51
50
}
@@ -128,6 +127,7 @@ protected function driverClear()
128
127
*/
129
128
protected function driverConnect ()
130
129
{
130
+ $ this ->instance = new MemcachedSoftware ();
131
131
$ servers = (!empty ($ this ->config [ 'servers ' ]) && is_array ($ this ->config [ 'servers ' ]) ? $ this ->config [ 'servers ' ] : []);
132
132
if (count ($ servers ) < 1 ) {
133
133
$ servers = [
You can’t perform that action at this time.
0 commit comments