Bug: T120896
Change-Id: I9406a50df8e900b4fc5861c2174ba7a63a0dd765
*/
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 );
if ( is_string( $val ) ) {
$val = unserialize( $val );
}
if ( is_string( $val ) ) {
$val = unserialize( $val );
}
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 );