|
MediaWiki
REL1_23
|
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 |
||
| ) |
| $casToken | mixed |
| $key | string |
| $value | mixed |
| $exptime | int |
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.
| $key | String |
| $value | Integer |
Reimplemented from BagOStuff.
Definition at line 105 of file APCBagOStuff.php.
| APCBagOStuff::delete | ( | $ | key, |
| $ | time = 0 |
||
| ) |
| $key | string |
| $time | int |
Reimplemented from BagOStuff.
Definition at line 84 of file APCBagOStuff.php.
References $key.
| APCBagOStuff::get | ( | $ | key, |
| &$ | casToken = null |
||
| ) |
| $key | string |
| $casToken[optional] | int |
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 |
| $value | Integer: 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 |
||
| ) |
| $key | string | |
| $callback | closure 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 |
||
| ) |
| $key | string |
| $value | mixed |
| $exptime | int |
Reimplemented from BagOStuff.
Definition at line 57 of file APCBagOStuff.php.
References $key, $value, and BagOStuff\isInteger().