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 685 of file BagOStuff.php.


Constructor & Destructor Documentation

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

Definition at line 688 of file BagOStuff.php.

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


Member Function Documentation

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

Reimplemented from BagOStuff.

Definition at line 793 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 711 of file BagOStuff.php.

References $blob.

Referenced by add(), and get().

DBABagOStuff::delete ( key,
time = 0 
)

Reimplemented from BagOStuff.

Definition at line 780 of file BagOStuff.php.

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

DBABagOStuff::encode ( value,
expiry 
)

Encode value and expiry for storage.

Definition at line 702 of file BagOStuff.php.

References BagOStuff::convertExpiry().

Referenced by add(), and set().

DBABagOStuff::get ( key  ) 

Reimplemented from BagOStuff.

Definition at line 742 of file BagOStuff.php.

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

DBABagOStuff::getReader (  ) 

Definition at line 722 of file BagOStuff.php.

References getWriter(), and wfDebug().

Referenced by get(), and keys().

DBABagOStuff::getWriter (  ) 

Definition at line 734 of file BagOStuff.php.

References wfDebug().

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

DBABagOStuff::keys (  ) 

Reimplemented from BagOStuff.

Definition at line 817 of file BagOStuff.php.

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

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

Reimplemented from BagOStuff.

Definition at line 766 of file BagOStuff.php.

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


Member Data Documentation

DBABagOStuff::$mDisabled

Definition at line 686 of file BagOStuff.php.

DBABagOStuff::$mFile

Definition at line 686 of file BagOStuff.php.

DBABagOStuff::$mHandler

Definition at line 686 of file BagOStuff.php.

DBABagOStuff::$mReader

Definition at line 686 of file BagOStuff.php.

DBABagOStuff::$mWriter

Definition at line 686 of file BagOStuff.php.


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

Generated on Thu Jul 29 17:01:53 2010 for MediaWiki by  doxygen 1.5.9