dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add support for PHP7 random_bytes in favor of mcrypt_create_iv"
[lhc/web/wiklou.git]
/
includes
/
libs
/
objectcache
/
WinCacheBagOStuff.php
diff --git
a/includes/libs/objectcache/WinCacheBagOStuff.php
b/includes/libs/objectcache/WinCacheBagOStuff.php
index
6996ce5
..
98f44d1
100644
(file)
--- a/
includes/libs/objectcache/WinCacheBagOStuff.php
+++ b/
includes/libs/objectcache/WinCacheBagOStuff.php
@@
-29,16
+29,7
@@
*/
class WinCacheBagOStuff extends BagOStuff {
protected function doGet( $key, $flags = 0 ) {
*/
class WinCacheBagOStuff extends BagOStuff {
protected function doGet( $key, $flags = 0 ) {
- $casToken = null;
-
- return $this->getWithToken( $key, $casToken, $flags );
- }
-
- protected function getWithToken( $key, &$casToken, $flags = 0 ) {
$val = wincache_ucache_get( $key );
$val = wincache_ucache_get( $key );
-
- $casToken = $val;
-
if ( is_string( $val ) ) {
$val = unserialize( $val );
}
if ( is_string( $val ) ) {
$val = unserialize( $val );
}
@@
-50,14
+41,10
@@
class WinCacheBagOStuff extends BagOStuff {
$result = wincache_ucache_set( $key, serialize( $value ), $expire );
/* wincache_ucache_set returns an empty array on success if $value
$result = wincache_ucache_set( $key, serialize( $value ), $expire );
/* wincache_ucache_set returns an empty array on success if $value
-
was an array, bool otherwise */
+
*
was an array, bool otherwise */
return ( is_array( $result ) && $result === [] ) || $result;
}
return ( is_array( $result ) && $result === [] ) || $result;
}
- protected function cas( $casToken, $key, $value, $exptime = 0 ) {
- return wincache_ucache_cas( $key, $casToken, serialize( $value ) );
- }
-
public function delete( $key ) {
wincache_ucache_delete( $key );
public function delete( $key ) {
wincache_ucache_delete( $key );