MediaWiki  REL1_24
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:
mixed$casToken
string$key
mixed$value
int$exp
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 57 of file EmptyBagOStuff.php.

EmptyBagOStuff::delete ( key,
time = 0 
)
Parameters:
string$key
int$time
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 66 of file EmptyBagOStuff.php.

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

Reimplemented from BagOStuff.

Definition at line 36 of file EmptyBagOStuff.php.

EmptyBagOStuff::merge ( key,
Closure $  callback,
exptime = 0,
attempts = 10 
)
Parameters:
string$key
Closure$callbackCallback 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:
string$key
mixed$value
int$exp
Returns:
bool

Reimplemented from BagOStuff.

Definition at line 46 of file EmptyBagOStuff.php.


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