MediaWiki  REL1_22
EmptyBagOStuff Class Reference

A BagOStuff object with no objects in it. More...

Inheritance diagram for EmptyBagOStuff:
Collaboration diagram for EmptyBagOStuff:

List of all members.

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)

Detailed Description

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.


Member Function Documentation

EmptyBagOStuff::cas ( casToken,
key,
value,
exp = 0 
)
Parameters:
$casTokenmixed
$keystring
$valuemixed
$expint
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 57 of file EmptyBagOStuff.php.

EmptyBagOStuff::delete ( key,
time = 0 
)
Parameters:
$keystring
$timeint
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 66 of file EmptyBagOStuff.php.

EmptyBagOStuff::get ( key,
&$  casToken = null 
)
Parameters:
$keystring
$casToken[optional]mixed
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 36 of file EmptyBagOStuff.php.

EmptyBagOStuff::merge ( key,
closure $  callback,
exptime = 0,
attempts = 10 
)
Parameters:
$keystring
$callbackclosure Callback method to be executed
int$exptimeEither an interval in seconds or a unix timestamp for expiry
int$attemptsThe amount of times to attempt a merge in case of failure
Returns:
bool success

Reimplemented from BagOStuff.

Definition at line 77 of file EmptyBagOStuff.php.

EmptyBagOStuff::set ( key,
value,
exp = 0 
)
Parameters:
$keystring
$valuemixed
$expint
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 46 of file EmptyBagOStuff.php.


The documentation for this class was generated from the following file: