MediaWiki
REL1_20
|
Wrapper for XCache object caching functions; identical interface to the APC wrapper. More...
Public Member Functions | |
decr ($key, $value=1) | |
Decrease stored value of $key by $value while preserving its TTL. | |
delete ($key, $time=0) | |
Remove a value from the XCache object cache. | |
get ($key) | |
Get a value from the XCache object cache. | |
incr ($key, $value=1) | |
Increase stored value of $key by $value while preserving its TTL. | |
set ($key, $value, $expire=0) | |
Store a value in the XCache object cache. |
Wrapper for XCache object caching functions; identical interface to the APC wrapper.
Definition at line 30 of file XCacheBagOStuff.php.
XCacheBagOStuff::decr | ( | $ | key, |
$ | value = 1 |
||
) |
Decrease stored value of $key by $value while preserving its TTL.
$key | String |
$value | Integer |
Reimplemented from BagOStuff.
Definition at line 86 of file XCacheBagOStuff.php.
References $value.
XCacheBagOStuff::delete | ( | $ | key, |
$ | time = 0 |
||
) |
Remove a value from the XCache object cache.
$key | String: cache key |
$time | Int: not used in this implementation |
Reimplemented from BagOStuff.
Definition at line 77 of file XCacheBagOStuff.php.
XCacheBagOStuff::get | ( | $ | key | ) |
Get a value from the XCache object cache.
$key | String: cache key |
Reimplemented from BagOStuff.
Definition at line 37 of file XCacheBagOStuff.php.
References BagOStuff\isInteger().
XCacheBagOStuff::incr | ( | $ | key, |
$ | value = 1 |
||
) |
Increase stored value of $key by $value while preserving its TTL.
$key | String: Key to increase |
$value | Integer: Value to add to $key (Default 1) |
Reimplemented from BagOStuff.
Definition at line 82 of file XCacheBagOStuff.php.
References $value.
XCacheBagOStuff::set | ( | $ | key, |
$ | value, | ||
$ | expire = 0 |
||
) |
Store a value in the XCache object cache.
$key | String: cache key |
$value | Mixed: object to store |
$expire | Int: expiration time |
Reimplemented from BagOStuff.
Definition at line 61 of file XCacheBagOStuff.php.
References $value, and BagOStuff\isInteger().