|
MediaWiki
REL1_24
|
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 |
||
| ) |
| mixed | $casToken | |
| string | $key | |
| mixed | $value | |
| int | $exp |
Reimplemented from BagOStuff.
Definition at line 57 of file EmptyBagOStuff.php.
| EmptyBagOStuff::delete | ( | $ | key, |
| $ | time = 0 |
||
| ) |
| string | $key | |
| int | $time |
Reimplemented from BagOStuff.
Definition at line 66 of file EmptyBagOStuff.php.
| EmptyBagOStuff::get | ( | $ | key, |
| &$ | casToken = null |
||
| ) |
| string | $key | |
| mixed | $casToken | [optional] |
Reimplemented from BagOStuff.
Definition at line 36 of file EmptyBagOStuff.php.
| EmptyBagOStuff::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 77 of file EmptyBagOStuff.php.
| EmptyBagOStuff::set | ( | $ | key, |
| $ | value, | ||
| $ | exp = 0 |
||
| ) |
| string | $key | |
| mixed | $value | |
| int | $exp |
Reimplemented from BagOStuff.
Definition at line 46 of file EmptyBagOStuff.php.