DBABagOStuff Class Reference
[Cache]

Inherits BagOStuff.

List of all members.

Public Member Functions

 __construct ($handler= 'db3', $dir=false)
 encode ($value, $expiry)
 Encode value and expiry for storage.
 decode ($blob)
 getReader ()
 getWriter ()
 get ($key)
 set ($key, $value, $exptime=0)
 delete ($key, $time=0)
 add ($key, $value, $exptime=0)
 keys ()

Public Attributes

 $mHandler
 $mFile
 $mReader
 $mWriter
 $mDisabled


Detailed Description

Todo:
document

Definition at line 676 of file BagOStuff.php.


Constructor & Destructor Documentation

DBABagOStuff::__construct ( handler = 'db3',
dir = false 
)

Definition at line 679 of file BagOStuff.php.

References $wgTmpDirectory, wfDebug(), and wfWikiID().


Member Function Documentation

DBABagOStuff::add ( key,
value,
exptime = 0 
)

Reimplemented from BagOStuff.

Definition at line 784 of file BagOStuff.php.

References $blob, $key, decode(), encode(), getWriter(), wfProfileIn(), and wfProfileOut().

DBABagOStuff::decode ( blob  ) 

Returns:
list containing value first and expiry second

Definition at line 702 of file BagOStuff.php.

References $blob.

Referenced by add(), and get().

DBABagOStuff::delete ( key,
time = 0 
)

Reimplemented from BagOStuff.

Definition at line 771 of file BagOStuff.php.

References $key, getWriter(), wfDebug(), wfProfileIn(), and wfProfileOut().

DBABagOStuff::encode ( value,
expiry 
)

Encode value and expiry for storage.

Definition at line 693 of file BagOStuff.php.

References BagOStuff::convertExpiry().

Referenced by add(), and set().

DBABagOStuff::get ( key  ) 

Reimplemented from BagOStuff.

Definition at line 733 of file BagOStuff.php.

References $key, decode(), getReader(), getWriter(), wfDebug(), wfProfileIn(), and wfProfileOut().

DBABagOStuff::getReader (  ) 

Definition at line 713 of file BagOStuff.php.

References getWriter(), and wfDebug().

Referenced by get(), and keys().

DBABagOStuff::getWriter (  ) 

Definition at line 725 of file BagOStuff.php.

References wfDebug().

Referenced by add(), delete(), get(), getReader(), and set().

DBABagOStuff::keys (  ) 

Reimplemented from BagOStuff.

Definition at line 808 of file BagOStuff.php.

References $key, $reader, $result, and getReader().

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

Reimplemented from BagOStuff.

Definition at line 757 of file BagOStuff.php.

References $blob, $key, encode(), getWriter(), wfDebug(), wfProfileIn(), and wfProfileOut().


Member Data Documentation

DBABagOStuff::$mDisabled

Definition at line 677 of file BagOStuff.php.

DBABagOStuff::$mFile

Definition at line 677 of file BagOStuff.php.

DBABagOStuff::$mHandler

Definition at line 677 of file BagOStuff.php.

DBABagOStuff::$mReader

Definition at line 677 of file BagOStuff.php.

DBABagOStuff::$mWriter

Definition at line 677 of file BagOStuff.php.


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

Generated on Sat Sep 5 02:08:35 2009 for MediaWiki by  doxygen 1.5.9