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)
 getDirty ($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::getDirty ( article,
popts 
)

Definition at line 54 of file ParserCache.php.

References getKey(), and wfDebug().

Referenced by get().

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 $wgRequest, ParserOptions::newFromUser(), and wfMemcKey().

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

ParserCache::save ( parserOutput,
article,
popts 
)

Definition at line 98 of file ParserCache.php.

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

static ParserCache::singleton (  )  [static]


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

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