|
MediaWiki
REL1_24
|
This is a wrapper for APC's shared memory functions. More...


Public Member Functions | |
| cas ($casToken, $key, $value, $exptime=0) | |
| decr ($key, $value=1) | |
| Decrease stored value of $key by $value while preserving its TTL. | |
| delete ($key, $time=0) | |
| get ($key, &$casToken=null) | |
| incr ($key, $value=1) | |
| Increase stored value of $key by $value while preserving its TTL. | |
| merge ($key, Closure $callback, $exptime=0, $attempts=10) | |
| set ($key, $value, $exptime=0) | |
This is a wrapper for APC's shared memory functions.
Definition at line 29 of file APCBagOStuff.php.
| APCBagOStuff::cas | ( | $ | casToken, |
| $ | key, | ||
| $ | value, | ||
| $ | exptime = 0 |
||
| ) |
| mixed | $casToken | |
| string | $key | |
| mixed | $value | |
| int | $exptime |
Reimplemented from BagOStuff.
Definition at line 74 of file APCBagOStuff.php.
| APCBagOStuff::decr | ( | $ | key, |
| $ | value = 1 |
||
| ) |
Decrease stored value of $key by $value while preserving its TTL.
| string | $key | |
| int | $value |
Reimplemented from BagOStuff.
Definition at line 105 of file APCBagOStuff.php.
| APCBagOStuff::delete | ( | $ | key, |
| $ | time = 0 |
||
| ) |
| string | $key | |
| int | $time |
Reimplemented from BagOStuff.
Definition at line 84 of file APCBagOStuff.php.
References $key.
| APCBagOStuff::get | ( | $ | key, |
| &$ | casToken = null |
||
| ) |
| string | $key | |
| int | $casToken | [optional] |
Reimplemented from BagOStuff.
Definition at line 35 of file APCBagOStuff.php.
References $key, and BagOStuff\isInteger().
| APCBagOStuff::incr | ( | $ | key, |
| $ | value = 1 |
||
| ) |
Increase stored value of $key by $value while preserving its TTL.
| string | $key | Key to increase |
| int | $value | Value to add to $key (Default 1) |
Reimplemented from BagOStuff.
Definition at line 101 of file APCBagOStuff.php.
| APCBagOStuff::merge | ( | $ | key, |
| Closure $ | callback, | ||
| $ | exptime = 0, |
||
| $ | attempts = 10 |
||
| ) |
| string | $key | |
| Closure | $callback | Callback method to be executed |
| int | $exptime | Either an interval in seconds or a unix timestamp for expiry |
| int | $attempts | The amount of times to attempt a merge in case of failure |
Reimplemented from BagOStuff.
Definition at line 97 of file APCBagOStuff.php.
References $key, and BagOStuff\mergeViaLock().
| APCBagOStuff::set | ( | $ | key, |
| $ | value, | ||
| $ | exptime = 0 |
||
| ) |
| string | $key | |
| mixed | $value | |
| int | $exptime |
Reimplemented from BagOStuff.
Definition at line 57 of file APCBagOStuff.php.
References $key, $value, and BagOStuff\isInteger().