MediaWiki REL1_33
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()
 
 testBusyValue ()
 WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
 
 testCheckKeyInitHoldoff ()
 WANObjectCache::get() WANObjectCache::processCheckKeys()
 
 testDelete ()
 WANObjectCache::delete WANObjectCache::relayDelete WANObjectCache::relayPurge.
 
 testEpoch ()
 
 testGetMulti ()
 WANObjectCache::getMulti()
 
 testGetMultiCheckKeys ()
 WANObjectCache::getMulti() WANObjectCache::processCheckKeys()
 
 testGetMultiWithSetCallback (array $extOpts, $versioned)
 getMultiWithSetCallback_provider WANObjectCache::getMultiWithSetCallback WANObjectCache::makeMultiKeys WANObjectCache::getMulti
 
 testGetMultiWithUnionSetCallback (array $extOpts, $versioned)
 getMultiWithUnionSetCallback_provider WANObjectCache::getMultiWithUnionSetCallback() WANObjectCache::makeMultiKeys()
 
 testGetNotExists ()
 WANObjectCache::get() WANObjectCache::makeGlobalKey()
 
 testGetQoS ()
 WANObjectCache::getQoS.
 
 testGetWithSetCallback (array $extOpts, $versioned)
 getWithSetCallback_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
 
 testGetWithSetCallback_invalidCallback ()
 WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
 
 testGetWithSetcallback_touched (array $extOpts, $versioned)
 getWithSetCallback_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
 
 testGetWithSetCallback_versions (array $extOpts, $versioned)
 getWithSetCallback_versions_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
 
 testGetWithSeveralCheckKeys ()
 WANObjectCache::getMulti()
 
 testInterimHoldOffCaching ()
 WANObjectCache::useInterimHoldOffCaching WANObjectCache::getInterimValue.
 
 testLockTSE ()
 WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
 
 testLockTSESlow ()
 WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback() WANObjectCache::set()
 
 testMakeGlobalKey ()
 WANObjectCache::makeGlobalKey.
 
 testMakeKey ()
 WANObjectCache::makeKey.
 
 testMcRouterSupport ()
 
 testMcRouterSupportBroadcastDelete ()
 
 testMcRouterSupportBroadcastResetCK ()
 
 testMcRouterSupportBroadcastTouchCK ()
 
 testNewEmpty ()
 WANObjectCache::__construct WANObjectCache::newEmpty.
 
 testPreemtiveRefresh ()
 
 testProcessCache ()
 
 testReap ()
 WANObjectCache::reap() WANObjectCache::reapCheckKey()
 
 testReap_fail ()
 WANObjectCache::reap()
 
 testSetAndGet ( $value, $ttl)
 provideSetAndGet WANObjectCache::set() WANObjectCache::get() WANObjectCache::makeKey()
 
 testSetLogger ()
 WANObjectCache::setLogger.
 
 testSetOver ()
 WANObjectCache::set()
 
 testSetWithLag ()
 WANObjectCache::set()
 
 testStaleSet ()
 WANObjectCache::set()
 
 testStatsKeyClass ( $key, $class)
 statsKeyProvider WANObjectCache::determineKeyClassForStats
 
 testTouchKeys ()
 WANObjectCache::touchCheckKey WANObjectCache::resetCheckKey WANObjectCache::getCheckKeyTime WANObjectCache::getMultiCheckKeyTime WANObjectCache::makePurgeValue WANObjectCache::parsePurgeValue.
 
 testWritePending ()
 WANObjectCache::set()
 

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

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

Definition at line 19 of file WANObjectCacheTest.php.

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 and(), and cache.

◆ testBusyValue()

WANObjectCacheTest::testBusyValue ( )

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

Definition at line 1010 of file WANObjectCacheTest.php.

References $cache, $ret, $value, and(), WANObjectCache\delete(), WANObjectCache\getWithSetCallback(), WANObjectCache\setMockTime(), and wfRandomString().

◆ testCheckKeyInitHoldoff()

WANObjectCacheTest::testCheckKeyInitHoldoff ( )

WANObjectCache::get() WANObjectCache::processCheckKeys()

Definition at line 1213 of file WANObjectCacheTest.php.

References $cache, and(), WANObjectCache\get(), WANObjectCache\set(), and wfRandomString().

◆ testDelete()

WANObjectCacheTest::testDelete ( )

WANObjectCache::delete WANObjectCache::relayDelete WANObjectCache::relayPurge.

Definition at line 1247 of file WANObjectCacheTest.php.

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

◆ testEpoch()

◆ testGetMulti()

WANObjectCacheTest::testGetMulti ( )

◆ testGetMultiCheckKeys()

WANObjectCacheTest::testGetMultiCheckKeys ( )

WANObjectCache::getMulti() WANObjectCache::processCheckKeys()

Definition at line 1132 of file WANObjectCacheTest.php.

References $cache, and(), WANObjectCache\getMulti(), WANObjectCache\set(), WANObjectCache\setMockTime(), WANObjectCache\touchCheckKey(), and wfRandomString().

◆ testGetMultiWithSetCallback()

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

getMultiWithSetCallback_provider WANObjectCache::getMultiWithSetCallback WANObjectCache::makeMultiKeys WANObjectCache::getMulti

Parameters
array$extOpts
bool$versioned

Definition at line 564 of file WANObjectCacheTest.php.

References $cache, $value, and(), array(), cache, WANObjectCache\delete(), WANObjectCache\get(), WANObjectCache\getCheckKeyTime(), WANObjectCache\getMultiWithSetCallback(), WANObjectCache\getWarmupKeyMisses(), WANObjectCache\makeMultiKeys(), WANObjectCache\setMockTime(), and wfRandomString().

◆ testGetMultiWithUnionSetCallback()

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

getMultiWithUnionSetCallback_provider WANObjectCache::getMultiWithUnionSetCallback() WANObjectCache::makeMultiKeys()

Parameters
array$extOpts
bool$versioned

Definition at line 736 of file WANObjectCacheTest.php.

References $cache, $value, and(), array(), cache, WANObjectCache\delete(), WANObjectCache\get(), WANObjectCache\getCheckKeyTime(), WANObjectCache\getMultiWithUnionSetCallback(), WANObjectCache\getWarmupKeyMisses(), WANObjectCache\makeMultiKeys(), WANObjectCache\setMockTime(), and wfRandomString().

◆ testGetNotExists()

WANObjectCacheTest::testGetNotExists ( )

WANObjectCache::get() WANObjectCache::makeGlobalKey()

Definition at line 90 of file WANObjectCacheTest.php.

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

◆ testGetQoS()

WANObjectCacheTest::testGetQoS ( )

WANObjectCache::getQoS.

Definition at line 1788 of file WANObjectCacheTest.php.

References and().

◆ testGetWithSetCallback()

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

getWithSetCallback_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()

Parameters
array$extOpts
bool$versioned

Definition at line 199 of file WANObjectCacheTest.php.

References $cache, $value, and(), array(), WANObjectCache\delete(), WANObjectCache\get(), WANObjectCache\getCheckKeyTime(), WANObjectCache\getWithSetCallback(), WANObjectCache\makeKey(), WANObjectCache\setMockTime(), WANObjectCache\touchCheckKey(), and wfRandomString().

◆ testGetWithSetCallback_invalidCallback()

WANObjectCacheTest::testGetWithSetCallback_invalidCallback ( )

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

Definition at line 551 of file WANObjectCacheTest.php.

References and(), and cache.

◆ testGetWithSetcallback_touched()

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

getWithSetCallback_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()

Parameters
array$extOpts
bool$versioned

Definition at line 385 of file WANObjectCacheTest.php.

References $cache, and(), array(), WANObjectCache\getWithSetCallback(), WANObjectCache\setMockTime(), and wfRandomString().

◆ 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, and(), WANObjectCache\delete(), WANObjectCache\getWithSetCallback(), and wfRandomString().

◆ testGetWithSeveralCheckKeys()

WANObjectCacheTest::testGetWithSeveralCheckKeys ( )

WANObjectCache::getMulti()

Definition at line 1476 of file WANObjectCacheTest.php.

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

◆ testInterimHoldOffCaching()

WANObjectCacheTest::testInterimHoldOffCaching ( )

WANObjectCache::useInterimHoldOffCaching WANObjectCache::getInterimValue.

Definition at line 1370 of file WANObjectCacheTest.php.

References $cache, $value, and(), WANObjectCache\delete(), WANObjectCache\getWithSetCallback(), WANObjectCache\setMockTime(), WANObjectCache\useInterimHoldOffCaching(), and wfRandomString().

◆ testLockTSE()

WANObjectCacheTest::testLockTSE ( )

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

Definition at line 885 of file WANObjectCacheTest.php.

References $cache, $ret, $value, and(), WANObjectCache\delete(), WANObjectCache\getWithSetCallback(), WANObjectCache\setMockTime(), and wfRandomString().

◆ testLockTSESlow()

WANObjectCacheTest::testLockTSESlow ( )

WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback() WANObjectCache::set()

Definition at line 930 of file WANObjectCacheTest.php.

References $cache, $ret, $value, and(), WANObjectCache\get(), WANObjectCache\getWithSetCallback(), WANObjectCache\setMockTime(), and wfRandomString().

◆ testMakeGlobalKey()

WANObjectCacheTest::testMakeGlobalKey ( )

WANObjectCache::makeGlobalKey.

Definition at line 1820 of file WANObjectCacheTest.php.

References and().

◆ testMakeKey()

WANObjectCacheTest::testMakeKey ( )

WANObjectCache::makeKey.

Definition at line 1804 of file WANObjectCacheTest.php.

References and().

◆ testMcRouterSupport()

WANObjectCacheTest::testMcRouterSupport ( )

Definition at line 1624 of file WANObjectCacheTest.php.

References and().

◆ testMcRouterSupportBroadcastDelete()

WANObjectCacheTest::testMcRouterSupportBroadcastDelete ( )

Definition at line 1650 of file WANObjectCacheTest.php.

References and().

◆ testMcRouterSupportBroadcastResetCK()

WANObjectCacheTest::testMcRouterSupportBroadcastResetCK ( )

Definition at line 1682 of file WANObjectCacheTest.php.

References and().

◆ testMcRouterSupportBroadcastTouchCK()

WANObjectCacheTest::testMcRouterSupportBroadcastTouchCK ( )

Definition at line 1666 of file WANObjectCacheTest.php.

References and().

◆ testNewEmpty()

WANObjectCacheTest::testNewEmpty ( )

WANObjectCache::__construct WANObjectCache::newEmpty.

Definition at line 1771 of file WANObjectCacheTest.php.

References and().

◆ testPreemtiveRefresh()

WANObjectCacheTest::testPreemtiveRefresh ( )

◆ testProcessCache()

WANObjectCacheTest::testProcessCache ( )

Definition at line 123 of file WANObjectCacheTest.php.

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

◆ testReap()

WANObjectCacheTest::testReap ( )

WANObjectCache::reap() WANObjectCache::reapCheckKey()

Definition at line 1512 of file WANObjectCacheTest.php.

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

◆ testReap_fail()

WANObjectCacheTest::testReap_fail ( )

WANObjectCache::reap()

Definition at line 1567 of file WANObjectCacheTest.php.

References $ret, and and().

◆ 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, and(), cache, and wfRandomString().

◆ testSetLogger()

WANObjectCacheTest::testSetLogger ( )

WANObjectCache::setLogger.

Definition at line 1781 of file WANObjectCacheTest.php.

References and(), and cache.

◆ testSetOver()

WANObjectCacheTest::testSetOver ( )

WANObjectCache::set()

Definition at line 102 of file WANObjectCacheTest.php.

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

◆ testSetWithLag()

WANObjectCacheTest::testSetWithLag ( )

WANObjectCache::set()

Definition at line 1593 of file WANObjectCacheTest.php.

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

◆ testStaleSet()

WANObjectCacheTest::testStaleSet ( )

WANObjectCache::set()

Definition at line 115 of file WANObjectCacheTest.php.

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

◆ testStatsKeyClass()

WANObjectCacheTest::testStatsKeyClass ( $key,
$class )

statsKeyProvider WANObjectCache::determineKeyClassForStats

Definition at line 1846 of file WANObjectCacheTest.php.

References and().

◆ testTouchKeys()

WANObjectCacheTest::testTouchKeys ( )

WANObjectCache::touchCheckKey WANObjectCache::resetCheckKey WANObjectCache::getCheckKeyTime WANObjectCache::getMultiCheckKeyTime WANObjectCache::makePurgeValue WANObjectCache::parsePurgeValue.

Definition at line 1435 of file WANObjectCacheTest.php.

References $cache, and(), WANObjectCache\getCheckKeyTime(), WANObjectCache\resetCheckKey(), WANObjectCache\setMockTime(), WANObjectCache\touchCheckKey(), and wfRandomString().

◆ testWritePending()

WANObjectCacheTest::testWritePending ( )

WANObjectCache::set()

Definition at line 1615 of file WANObjectCacheTest.php.

References $value, and(), 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: