diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:32:59 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:32:59 -0400 |
commit | 6dc1997577fab2c366781fd7048144935afa0012 (patch) | |
tree | 8918d28c7ab4342f0738985e37af1dfc42d0e93a /includes/libs/objectcache/WinCacheBagOStuff.php | |
parent | 150f94f051128f367bc89f6b7e5f57eb2a69fc62 (diff) | |
parent | fa89acd685cb09cdbe1c64cbb721ec64975bbbc1 (diff) |
Merge commit 'fa89acd'
# Conflicts:
# .gitignore
# extensions/ArchInterWiki.sql
Diffstat (limited to 'includes/libs/objectcache/WinCacheBagOStuff.php')
-rw-r--r-- | includes/libs/objectcache/WinCacheBagOStuff.php | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/includes/libs/objectcache/WinCacheBagOStuff.php b/includes/libs/objectcache/WinCacheBagOStuff.php index 53625746..c480aa08 100644 --- a/includes/libs/objectcache/WinCacheBagOStuff.php +++ b/includes/libs/objectcache/WinCacheBagOStuff.php @@ -28,15 +28,7 @@ * @ingroup Cache */ class WinCacheBagOStuff extends BagOStuff { - - /** - * Get a value from the WinCache object cache - * - * @param string $key Cache key - * @param int $casToken [optional] Cas token - * @return mixed - */ - public function get( $key, &$casToken = null ) { + public function get( $key, &$casToken = null, $flags = 0 ) { $val = wincache_ucache_get( $key ); $casToken = $val; @@ -48,14 +40,6 @@ class WinCacheBagOStuff extends BagOStuff { return $val; } - /** - * Store a value in the WinCache object cache - * - * @param string $key Cache key - * @param mixed $value Value to store - * @param int $expire Expiration time - * @return bool - */ public function set( $key, $value, $expire = 0 ) { $result = wincache_ucache_set( $key, serialize( $value ), $expire ); @@ -64,25 +48,10 @@ class WinCacheBagOStuff extends BagOStuff { return ( is_array( $result ) && $result === array() ) || $result; } - /** - * Store a value in the WinCache object cache, race condition-safe - * - * @param int $casToken Cas token - * @param string $key Cache key - * @param int $value Object to store - * @param int $exptime Expiration time - * @return bool - */ protected function cas( $casToken, $key, $value, $exptime = 0 ) { return wincache_ucache_cas( $key, $casToken, serialize( $value ) ); } - /** - * Remove a value from the WinCache object cache - * - * @param string $key Cache key - * @return bool - */ public function delete( $key ) { wincache_ucache_delete( $key ); |