MediaWiki  1.33.0
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...
 
 testEpoch ()
 
 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_touched (array $extOpts, $versioned)
 getWithSetCallback_provider 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 ()
 
 testMcRouterSupportBroadcastDelete ()
 
 testMcRouterSupportBroadcastResetCK ()
 
 testMcRouterSupportBroadcastTouchCK ()
 
 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::determineKeyClassForStats 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

WANObjectCache $cache
 
BagOStuff $internalCache
 

Detailed Description

Member Function Documentation

◆ getMultiWithSetCallback_provider()

static WANObjectCacheTest::getMultiWithSetCallback_provider ( )
static

Definition at line 722 of file WANObjectCacheTest.php.

References false, and true.

◆ getMultiWithUnionSetCallback_provider()

static WANObjectCacheTest::getMultiWithUnionSetCallback_provider ( )
static

Definition at line 874 of file WANObjectCacheTest.php.

References false, and true.

◆ getWithSetCallback_provider()

static WANObjectCacheTest::getWithSetCallback_provider ( )
static

Definition at line 437 of file WANObjectCacheTest.php.

References false, and true.

◆ getWithSetCallback_versions_provider()

static WANObjectCacheTest::getWithSetCallback_versions_provider ( )
static

Definition at line 1359 of file WANObjectCacheTest.php.

References false, and true.

◆ provideAdaptiveTTL()

static WANObjectCacheTest::provideAdaptiveTTL ( )
static

Definition at line 1757 of file WANObjectCacheTest.php.

◆ provideSetAndGet()

static WANObjectCacheTest::provideSetAndGet ( )
static

Definition at line 72 of file WANObjectCacheTest.php.

References object.

◆ setUp()

WANObjectCacheTest::setUp ( )
protected

Definition at line 29 of file WANObjectCacheTest.php.

References cache.

◆ statsKeyProvider()

static WANObjectCacheTest::statsKeyProvider ( )
static

Definition at line 1833 of file WANObjectCacheTest.php.

◆ testAdaptiveTTL()

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 1743 of file WANObjectCacheTest.php.

References cache.

◆ testBusyValue()

◆ testCheckKeyInitHoldoff()

WANObjectCacheTest::testCheckKeyInitHoldoff ( )

◆ testDelete()

◆ testEpoch()

◆ testGetMulti()

◆ testGetMultiCheckKeys()

◆ testGetMultiWithSetCallback()

◆ testGetMultiWithUnionSetCallback()

◆ testGetNotExists()

WANObjectCacheTest::testGetNotExists ( )

◆ testGetQoS()

WANObjectCacheTest::testGetQoS ( )

◆ testGetWithSetCallback()

◆ testGetWithSetCallback_invalidCallback()

WANObjectCacheTest::testGetWithSetCallback_invalidCallback ( )

◆ testGetWithSetcallback_touched()

WANObjectCacheTest::testGetWithSetcallback_touched ( array  $extOpts,
  $versioned 
)

◆ testGetWithSetCallback_versions()

WANObjectCacheTest::testGetWithSetCallback_versions ( array  $extOpts,
  $versioned 
)

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

Parameters
array$extOpts
bool$versioned

Definition at line 1290 of file WANObjectCacheTest.php.

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

◆ testGetWithSeveralCheckKeys()

WANObjectCacheTest::testGetWithSeveralCheckKeys ( )

◆ testInterimHoldOffCaching()

◆ testLockTSE()

◆ testLockTSESlow()

◆ testMakeGlobalKey()

WANObjectCacheTest::testMakeGlobalKey ( )

WANObjectCache::makeGlobalKey.

Definition at line 1820 of file WANObjectCacheTest.php.

References class.

◆ testMakeKey()

WANObjectCacheTest::testMakeKey ( )

WANObjectCache::makeKey.

Definition at line 1804 of file WANObjectCacheTest.php.

References class.

◆ testMcRouterSupport()

WANObjectCacheTest::testMcRouterSupport ( )

Definition at line 1624 of file WANObjectCacheTest.php.

References class.

◆ testMcRouterSupportBroadcastDelete()

WANObjectCacheTest::testMcRouterSupportBroadcastDelete ( )

Definition at line 1650 of file WANObjectCacheTest.php.

References class.

◆ testMcRouterSupportBroadcastResetCK()

WANObjectCacheTest::testMcRouterSupportBroadcastResetCK ( )

Definition at line 1682 of file WANObjectCacheTest.php.

References class.

◆ testMcRouterSupportBroadcastTouchCK()

WANObjectCacheTest::testMcRouterSupportBroadcastTouchCK ( )

Definition at line 1666 of file WANObjectCacheTest.php.

References class.

◆ testNewEmpty()

WANObjectCacheTest::testNewEmpty ( )

◆ testPreemtiveRefresh()

WANObjectCacheTest::testPreemtiveRefresh ( )

◆ testProcessCache()

WANObjectCacheTest::testProcessCache ( )

Definition at line 123 of file WANObjectCacheTest.php.

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

◆ testReap()

◆ testReap_fail()

◆ testSetAndGet()

WANObjectCacheTest::testSetAndGet (   $value,
  $ttl 
)

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

Parameters
mixed$value
int$ttl

Definition at line 49 of file WANObjectCacheTest.php.

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

◆ testSetLogger()

WANObjectCacheTest::testSetLogger ( )

WANObjectCache::setLogger.

Definition at line 1781 of file WANObjectCacheTest.php.

References cache.

◆ testSetOver()

WANObjectCacheTest::testSetOver ( )

WANObjectCache::set()

Definition at line 102 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testSetWithLag()

WANObjectCacheTest::testSetWithLag ( )

WANObjectCache::set()

Definition at line 1593 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testStaleSet()

WANObjectCacheTest::testStaleSet ( )

WANObjectCache::set()

Definition at line 115 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testStatsKeyClass()

WANObjectCacheTest::testStatsKeyClass (   $key,
  $class 
)

statsKeyProvider WANObjectCache::determineKeyClassForStats

Definition at line 1846 of file WANObjectCacheTest.php.

◆ testTouchKeys()

◆ testWritePending()

WANObjectCacheTest::testWritePending ( )

WANObjectCache::set()

Definition at line 1615 of file WANObjectCacheTest.php.

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

Member Data Documentation

◆ $cache

◆ $internalCache

BagOStuff WANObjectCacheTest::$internalCache
private

Definition at line 27 of file WANObjectCacheTest.php.


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