|
MediaWiki
REL1_23
|
A BagOStuff object with no objects in it. More...


Public Member Functions | |
| cas ($casToken, $key, $value, $exp=0) | |
| delete ($key, $time=0) | |
| get ($key, &$casToken=null) | |
| merge ($key, closure $callback, $exptime=0, $attempts=10) | |
| set ($key, $value, $exp=0) | |
A BagOStuff object with no objects in it.
Used to provide a no-op object to calling code.
Definition at line 29 of file EmptyBagOStuff.php.
| EmptyBagOStuff::cas | ( | $ | casToken, |
| $ | key, | ||
| $ | value, | ||
| $ | exp = 0 |
||
| ) |
| $casToken | mixed |
| $key | string |
| $value | mixed |
| $exp | int |
Reimplemented from BagOStuff.
Definition at line 57 of file EmptyBagOStuff.php.
| EmptyBagOStuff::delete | ( | $ | key, |
| $ | time = 0 |
||
| ) |
| $key | string |
| $time | int |
Reimplemented from BagOStuff.
Definition at line 66 of file EmptyBagOStuff.php.
| EmptyBagOStuff::get | ( | $ | key, |
| &$ | casToken = null |
||
| ) |
| $key | string |
| $casToken[optional] | mixed |
Reimplemented from BagOStuff.
Definition at line 36 of file EmptyBagOStuff.php.
| EmptyBagOStuff::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 77 of file EmptyBagOStuff.php.
| EmptyBagOStuff::set | ( | $ | key, |
| $ | value, | ||
| $ | exp = 0 |
||
| ) |
| $key | string |
| $value | mixed |
| $exp | int |
Reimplemented from BagOStuff.
Definition at line 46 of file EmptyBagOStuff.php.