MediaWiki  REL1_19
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

 delete ($key, $time=0)
 Delete an item.
 get ($key)
 Get an item with the given key.
 set ($key, $value, $exp=0)
 Set an item.

Detailed Description

A BagOStuff object with no objects in it.

Used to provide a no-op object to calling code.

Definition at line 8 of file EmptyBagOStuff.php.


Member Function Documentation

EmptyBagOStuff::delete ( key,
time = 0 
)

Delete an item.

Parameters:
$keystring
$timeint Amount of time to delay the operation (mostly memcached-specific)

Reimplemented from BagOStuff.

Definition at line 17 of file EmptyBagOStuff.php.

EmptyBagOStuff::get ( key)

Get an item with the given key.

Returns false if it does not exist.

Parameters:
$keystring
Returns:
bool|Object

Reimplemented from BagOStuff.

Definition at line 9 of file EmptyBagOStuff.php.

EmptyBagOStuff::set ( key,
value,
exptime = 0 
)

Set an item.

Parameters:
$keystring
$valuemixed
$exptimeint Either an interval in seconds or a unix timestamp for expiry

Reimplemented from BagOStuff.

Definition at line 13 of file EmptyBagOStuff.php.


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