MediaWiki  master
WANObjectCacheTest Class Reference

WANObjectCache::wrap WANObjectCache::unwrap WANObjectCache::worthRefreshExpiring WANObjectCache::worthRefreshPopular WANObjectCache::isValid WANObjectCache::getWarmupKeyMisses WANObjectCache::prefixCacheKeys WANObjectCache::getProcessCache WANObjectCache::getNonProcessCachedKeys WANObjectCache::getRawKeysForWarmup WANObjectCache::getInterimValue WANObjectCache::setInterimValue. More...

Inheritance diagram for WANObjectCacheTest:
Collaboration diagram for WANObjectCacheTest:

Public Member Functions

 testAdaptiveTTL ($ago, $maxTTL, $minTTL, $factor, $adaptiveTTL)
 provideAdaptiveTTL WANObjectCache::adaptiveTTL() More...
 
 testBusyValue ()
 WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback() More...
 
 testCheckKeyInitHoldoff ()
 WANObjectCache::get() WANObjectCache::processCheckKeys() More...
 
 testDelete ()
 WANObjectCache::delete WANObjectCache::relayDelete WANObjectCache::relayPurge. More...
 
 testGetMulti ()
 WANObjectCache::getMulti() More...
 
 testGetMultiCheckKeys ()
 WANObjectCache::getMulti() WANObjectCache::processCheckKeys() More...
 
 testGetMultiWithSetCallback (array $extOpts, $versioned)
 getMultiWithSetCallback_provider WANObjectCache::getMultiWithSetCallback WANObjectCache::makeMultiKeys WANObjectCache::getMulti More...
 
 testGetMultiWithUnionSetCallback (array $extOpts, $versioned)
 getMultiWithUnionSetCallback_provider WANObjectCache::getMultiWithUnionSetCallback() WANObjectCache::makeMultiKeys() More...
 
 testGetNotExists ()
 WANObjectCache::get() WANObjectCache::makeGlobalKey() More...
 
 testGetQoS ()
 WANObjectCache::getQoS. More...
 
 testGetWithSetCallback (array $extOpts, $versioned)
 getWithSetCallback_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback() More...
 
 testGetWithSetCallback_invalidCallback ()
 WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback() More...
 
 testGetWithSetCallback_versions (array $extOpts, $versioned)
 getWithSetCallback_versions_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback() More...
 
 testGetWithSeveralCheckKeys ()
 WANObjectCache::getMulti() More...
 
 testInterimHoldOffCaching ()
 WANObjectCache::useInterimHoldOffCaching WANObjectCache::getInterimValue. More...
 
 testLockTSE ()
 WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback() More...
 
 testLockTSESlow ()
 WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback() WANObjectCache::set() More...
 
 testMakeGlobalKey ()
 WANObjectCache::makeGlobalKey. More...
 
 testMakeKey ()
 WANObjectCache::makeKey. More...
 
 testMcRouterSupport ()
 
 testNewEmpty ()
 WANObjectCache::__construct WANObjectCache::newEmpty. More...
 
 testPreemtiveRefresh ()
 
 testProcessCache ()
 
 testReap ()
 WANObjectCache::reap() WANObjectCache::reapCheckKey() More...
 
 testReap_fail ()
 WANObjectCache::reap() More...
 
 testSetAndGet ($value, $ttl)
 provideSetAndGet WANObjectCache::set() WANObjectCache::get() WANObjectCache::makeKey() More...
 
 testSetLogger ()
 WANObjectCache::setLogger. More...
 
 testSetOver ()
 WANObjectCache::set() More...
 
 testSetWithLag ()
 WANObjectCache::set() More...
 
 testStaleSet ()
 WANObjectCache::set() More...
 
 testStatsKeyClass ($key, $class)
 statsKeyProvider WANObjectCache::determineKeyClass More...
 
 testTouchKeys ()
 WANObjectCache::touchCheckKey WANObjectCache::resetCheckKey WANObjectCache::getCheckKeyTime WANObjectCache::getMultiCheckKeyTime WANObjectCache::makePurgeValue WANObjectCache::parsePurgeValue. More...
 
 testWritePending ()
 WANObjectCache::set() More...
 

Static Public Member Functions

static getMultiWithSetCallback_provider ()
 
static getMultiWithUnionSetCallback_provider ()
 
static getWithSetCallback_provider ()
 
static getWithSetCallback_versions_provider ()
 
static provideAdaptiveTTL ()
 
static provideSetAndGet ()
 
static statsKeyProvider ()
 

Protected Member Functions

 setUp ()
 

Private Attributes

TimeAdjustableWANObjectCache $cache
 
BagOStuff $internalCache
 

Detailed Description

Member Function Documentation

static WANObjectCacheTest::getMultiWithSetCallback_provider ( )
static

Definition at line 642 of file WANObjectCacheTest.php.

References false, and true.

static WANObjectCacheTest::getMultiWithUnionSetCallback_provider ( )
static

Definition at line 792 of file WANObjectCacheTest.php.

References false, and true.

static WANObjectCacheTest::getWithSetCallback_provider ( )
static

Definition at line 363 of file WANObjectCacheTest.php.

References false, and true.

static WANObjectCacheTest::getWithSetCallback_versions_provider ( )
static

Definition at line 1220 of file WANObjectCacheTest.php.

References false, and true.

static WANObjectCacheTest::provideAdaptiveTTL ( )
static

Definition at line 1521 of file WANObjectCacheTest.php.

static WANObjectCacheTest::provideSetAndGet ( )
static

Definition at line 70 of file WANObjectCacheTest.php.

References object.

WANObjectCacheTest::setUp ( )
protected

Definition at line 25 of file WANObjectCacheTest.php.

References cache.

static WANObjectCacheTest::statsKeyProvider ( )
static

Definition at line 1601 of file WANObjectCacheTest.php.

WANObjectCacheTest::testAdaptiveTTL (   $ago,
  $maxTTL,
  $minTTL,
  $factor,
  $adaptiveTTL 
)

provideAdaptiveTTL WANObjectCache::adaptiveTTL()

Parameters
float | int$ago
int$maxTTL
int$minTTL
float$factor
int$adaptiveTTL

Definition at line 1507 of file WANObjectCacheTest.php.

References cache.

WANObjectCacheTest::testCheckKeyInitHoldoff ( )
WANObjectCacheTest::testGetNotExists ( )
WANObjectCacheTest::testGetQoS ( )
WANObjectCacheTest::testGetWithSetCallback_invalidCallback ( )
WANObjectCacheTest::testGetWithSetCallback_versions ( array  $extOpts,
  $versioned 
)

getWithSetCallback_versions_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()

Parameters
array$extOpts
bool$versioned

Definition at line 1151 of file WANObjectCacheTest.php.

References $cache, $key, WANObjectCache\delete(), WANObjectCache\getWithSetCallback(), use, and wfRandomString().

WANObjectCacheTest::testGetWithSeveralCheckKeys ( )
WANObjectCacheTest::testMakeGlobalKey ( )

WANObjectCache::makeGlobalKey.

Definition at line 1586 of file WANObjectCacheTest.php.

References class.

WANObjectCacheTest::testMakeKey ( )

WANObjectCache::makeKey.

Definition at line 1568 of file WANObjectCacheTest.php.

References class.

WANObjectCacheTest::testMcRouterSupport ( )

Definition at line 1473 of file WANObjectCacheTest.php.

WANObjectCacheTest::testNewEmpty ( )
WANObjectCacheTest::testPreemtiveRefresh ( )
WANObjectCacheTest::testProcessCache ( )

Definition at line 121 of file WANObjectCacheTest.php.

References $key, $keys, as, cache, use, and wfRandomString().

WANObjectCacheTest::testSetAndGet (   $value,
  $ttl 
)

provideSetAndGet WANObjectCache::set() WANObjectCache::get() WANObjectCache::makeKey()

Parameters
mixed$value
int$ttl

Definition at line 47 of file WANObjectCacheTest.php.

References $key, $t, $value, cache, and wfRandomString().

WANObjectCacheTest::testSetLogger ( )

WANObjectCache::setLogger.

Definition at line 1545 of file WANObjectCacheTest.php.

References cache.

WANObjectCacheTest::testSetOver ( )

WANObjectCache::set()

Definition at line 100 of file WANObjectCacheTest.php.

References $key, $value, cache, and wfRandomString().

WANObjectCacheTest::testSetWithLag ( )

WANObjectCache::set()

Definition at line 1442 of file WANObjectCacheTest.php.

References $key, $value, cache, and wfRandomString().

WANObjectCacheTest::testStaleSet ( )

WANObjectCache::set()

Definition at line 113 of file WANObjectCacheTest.php.

References $key, $value, cache, and wfRandomString().

WANObjectCacheTest::testStatsKeyClass (   $key,
  $class 
)

statsKeyProvider WANObjectCache::determineKeyClass

Definition at line 1614 of file WANObjectCacheTest.php.

References $key.

WANObjectCacheTest::testWritePending ( )

WANObjectCache::set()

Definition at line 1464 of file WANObjectCacheTest.php.

References $key, $value, cache, true, and wfRandomString().

Member Data Documentation

BagOStuff WANObjectCacheTest::$internalCache
private

Definition at line 23 of file WANObjectCacheTest.php.


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