ParserCache Class Reference
[CacheParser]

List of all members.

Public Member Functions

 __construct (&$memCached)
 Setup a cache pathway with a given back-end storage mechanism.
 getKey (&$article, $popts)
 getETag (&$article, $popts)
 get (&$article, $popts)
 save ($parserOutput, &$article, $popts)

Static Public Member Functions

static & singleton ()
 Get an instance of this object.


Detailed Description

Todo:
document

Definition at line 6 of file ParserCache.php.


Constructor & Destructor Documentation

ParserCache::__construct ( &$  memCached  ) 

Setup a cache pathway with a given back-end storage mechanism.

May be a memcached client or a BagOStuff derivative.

Parameters:
object $memCached

Definition at line 25 of file ParserCache.php.


Member Function Documentation

ParserCache::get ( &$  article,
popts 
)

ParserCache::getETag ( &$  article,
popts 
)

Definition at line 50 of file ParserCache.php.

References getKey().

ParserCache::getKey ( &$  article,
popts 
)

Definition at line 29 of file ParserCache.php.

References $key, $user, $wgRequest, ParserOptions::newFromUser(), and wfMemcKey().

Referenced by get(), getETag(), and save().

ParserCache::save ( parserOutput,
&$  article,
popts 
)

Definition at line 95 of file ParserCache.php.

References $key, $wgParserCacheExpireTime, getKey(), wfDebug(), and wfTimestampNow().

static& ParserCache::singleton (  )  [static]


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

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