HashBagOStuff Class Reference
[Cache]

Functional versions! This is a test of the interface, mainly. More...

Inherits BagOStuff.

List of all members.

Public Member Functions

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

Public Attributes

 $bag

Protected Member Functions

 expire ($key)


Detailed Description

Functional versions! This is a test of the interface, mainly.

It stores things in an associative array, which is not going to persist between program runs.

Definition at line 172 of file BagOStuff.php.


Constructor & Destructor Documentation

HashBagOStuff::__construct (  ) 

Definition at line 175 of file BagOStuff.php.


Member Function Documentation

HashBagOStuff::delete ( key,
time = 0 
)

Reimplemented from BagOStuff.

Definition at line 202 of file BagOStuff.php.

HashBagOStuff::expire ( key  )  [protected]

Definition at line 179 of file BagOStuff.php.

Referenced by get().

HashBagOStuff::get ( key  ) 

Get an item with the given key.

Returns false if it does not exist.

Parameters:
$key string

Reimplemented from BagOStuff.

Definition at line 188 of file BagOStuff.php.

References expire().

HashBagOStuff::keys (  ) 

Reimplemented from BagOStuff.

Definition at line 210 of file BagOStuff.php.

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

Set an item.

Parameters:
$key string
$value mixed
$exptime int Either an interval in seconds or a unix timestamp for expiry

Reimplemented from BagOStuff.

Definition at line 198 of file BagOStuff.php.

References BagOStuff::convertExpiry().


Member Data Documentation

HashBagOStuff::$bag

Definition at line 173 of file BagOStuff.php.


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

Generated on Sat Apr 30 22:57:38 2011 for MediaWiki by  doxygen 1.5.9