File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class memcache extends DriverAbstract
32
32
/**
33
33
* @var int
34
34
*/
35
- private $ flags = 0 ;
35
+ protected $ memcacheFlags = 0 ;
36
36
37
37
/**
38
38
* phpFastCache_memcache constructor.
@@ -47,8 +47,8 @@ public function __construct($config = array())
47
47
if (class_exists ('Memcache ' )) {
48
48
$ this ->instant = new MemcacheSoftware ();
49
49
50
- if (isset ( $ config [ 'compress_data ' ] ) && $ config [ 'compress_data ' ] === true ) {
51
- $ this ->flags = MEMCACHE_COMPRESSED ;
50
+ if (array_key_exists ( 'compress_data ' , $ config ) && $ config [ 'compress_data ' ] === true ) {
51
+ $ this ->memcacheFlags = MEMCACHE_COMPRESSED ;
52
52
}
53
53
} else {
54
54
$ this ->fallback = true ;
@@ -121,10 +121,10 @@ public function driver_set(
121
121
}
122
122
123
123
if (isset ($ option [ 'skipExisting ' ]) && $ option [ 'skipExisting ' ] == true ) {
124
- return $ this ->instant ->add ($ keyword , $ value , $ this ->flags , $ time );
124
+ return $ this ->instant ->add ($ keyword , $ value , $ this ->memcacheFlags , $ time );
125
125
126
126
} else {
127
- return $ this ->instant ->set ($ keyword , $ value , $ this ->flags , $ time );
127
+ return $ this ->instant ->set ($ keyword , $ value , $ this ->memcacheFlags , $ time );
128
128
}
129
129
}
130
130
You can’t perform that action at this time.
0 commit comments