[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Object caching using XCache. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 117 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Class: XCacheBagOStuff - X-Ref
Wrapper for XCache object caching functions; identical interfaceget( $key, &$casToken = null ) X-Ref |
Get a value from the XCache object cache param: string $key Cache key param: mixed $casToken Cas token return: mixed |
set( $key, $value, $expire = 0 ) X-Ref |
Store a value in the XCache object cache param: string $key Cache key param: mixed $value Object to store param: int $expire Expiration time return: bool |
cas( $casToken, $key, $value, $exptime = 0 ) X-Ref |
param: mixed $casToken param: string $key param: mixed $value param: int $exptime return: bool |
delete( $key, $time = 0 ) X-Ref |
Remove a value from the XCache object cache param: string $key Cache key param: int $time Not used in this implementation return: bool |
merge( $key, Closure $callback, $exptime = 0, $attempts = 10 ) X-Ref |
Merge an item. XCache does not seem to support any way of performing CAS - this however will provide a way to perform CAS-like functionality. param: string $key param: Closure $callback Callback method to be executed param: int $exptime Either an interval in seconds or a unix timestamp for expiry param: int $attempts The amount of times to attempt a merge in case of failure return: bool Success |
incr( $key, $value = 1 ) X-Ref |
No description |
decr( $key, $value = 1 ) X-Ref |
No description |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |