MediaWiki REL1_33
|
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...
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 |
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.
|
static |
Definition at line 722 of file WANObjectCacheTest.php.
|
static |
Definition at line 874 of file WANObjectCacheTest.php.
|
static |
Definition at line 437 of file WANObjectCacheTest.php.
|
static |
Definition at line 1359 of file WANObjectCacheTest.php.
|
static |
Definition at line 1757 of file WANObjectCacheTest.php.
|
static |
Definition at line 72 of file WANObjectCacheTest.php.
References object.
|
protected |
Definition at line 29 of file WANObjectCacheTest.php.
References cache.
|
static |
Definition at line 1833 of file WANObjectCacheTest.php.
WANObjectCacheTest::testAdaptiveTTL | ( | $ago, | |
$maxTTL, | |||
$minTTL, | |||
$factor, | |||
$adaptiveTTL ) |
provideAdaptiveTTL WANObjectCache::adaptiveTTL()
float | int | $ago | |
int | $maxTTL | |
int | $minTTL | |
float | $factor | |
int | $adaptiveTTL |
Definition at line 1743 of file WANObjectCacheTest.php.
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().
WANObjectCacheTest::testCheckKeyInitHoldoff | ( | ) |
WANObjectCache::get() WANObjectCache::processCheckKeys()
Definition at line 1213 of file WANObjectCacheTest.php.
References $cache, and(), WANObjectCache\get(), WANObjectCache\set(), and wfRandomString().
WANObjectCacheTest::testDelete | ( | ) |
WANObjectCache::delete WANObjectCache::relayDelete WANObjectCache::relayPurge.
Definition at line 1247 of file WANObjectCacheTest.php.
References $value, and(), cache, and wfRandomString().
WANObjectCacheTest::testEpoch | ( | ) |
Definition at line 1698 of file WANObjectCacheTest.php.
References $cache, and(), WANObjectCache\get(), WANObjectCache\getCheckKeyTime(), WANObjectCache\makeGlobalKey(), WANObjectCache\set(), WANObjectCache\setMockTime(), and WANObjectCache\touchCheckKey().
WANObjectCacheTest::testGetMulti | ( | ) |
WANObjectCache::getMulti()
Definition at line 1068 of file WANObjectCacheTest.php.
References $cache, and(), WANObjectCache\getCheckKeyTime(), WANObjectCache\getMulti(), WANObjectCache\set(), WANObjectCache\setMockTime(), and wfRandomString().
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().
WANObjectCacheTest::testGetMultiWithSetCallback | ( | array | $extOpts, |
$versioned ) |
getMultiWithSetCallback_provider WANObjectCache::getMultiWithSetCallback WANObjectCache::makeMultiKeys WANObjectCache::getMulti
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().
WANObjectCacheTest::testGetMultiWithUnionSetCallback | ( | array | $extOpts, |
$versioned ) |
getMultiWithUnionSetCallback_provider WANObjectCache::getMultiWithUnionSetCallback() WANObjectCache::makeMultiKeys()
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().
WANObjectCacheTest::testGetNotExists | ( | ) |
WANObjectCache::get() WANObjectCache::makeGlobalKey()
Definition at line 90 of file WANObjectCacheTest.php.
References $value, and(), cache, and wfRandomString().
WANObjectCacheTest::testGetQoS | ( | ) |
WANObjectCacheTest::testGetWithSetCallback | ( | array | $extOpts, |
$versioned ) |
getWithSetCallback_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
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().
WANObjectCacheTest::testGetWithSetCallback_invalidCallback | ( | ) |
WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
Definition at line 551 of file WANObjectCacheTest.php.
WANObjectCacheTest::testGetWithSetcallback_touched | ( | array | $extOpts, |
$versioned ) |
getWithSetCallback_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
array | $extOpts | |
bool | $versioned |
Definition at line 385 of file WANObjectCacheTest.php.
References $cache, and(), array(), WANObjectCache\getWithSetCallback(), WANObjectCache\setMockTime(), and wfRandomString().
WANObjectCacheTest::testGetWithSetCallback_versions | ( | array | $extOpts, |
$versioned ) |
getWithSetCallback_versions_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
array | $extOpts | |
bool | $versioned |
Definition at line 1290 of file WANObjectCacheTest.php.
References $cache, and(), WANObjectCache\delete(), WANObjectCache\getWithSetCallback(), and wfRandomString().
WANObjectCacheTest::testGetWithSeveralCheckKeys | ( | ) |
WANObjectCache::getMulti()
Definition at line 1476 of file WANObjectCacheTest.php.
References $value, and(), cache, and wfRandomString().
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().
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().
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().
WANObjectCacheTest::testMakeGlobalKey | ( | ) |
WANObjectCache::makeGlobalKey.
Definition at line 1820 of file WANObjectCacheTest.php.
References and().
WANObjectCacheTest::testMakeKey | ( | ) |
WANObjectCacheTest::testMcRouterSupport | ( | ) |
Definition at line 1624 of file WANObjectCacheTest.php.
References and().
WANObjectCacheTest::testMcRouterSupportBroadcastDelete | ( | ) |
Definition at line 1650 of file WANObjectCacheTest.php.
References and().
WANObjectCacheTest::testMcRouterSupportBroadcastResetCK | ( | ) |
Definition at line 1682 of file WANObjectCacheTest.php.
References and().
WANObjectCacheTest::testMcRouterSupportBroadcastTouchCK | ( | ) |
Definition at line 1666 of file WANObjectCacheTest.php.
References and().
WANObjectCacheTest::testNewEmpty | ( | ) |
WANObjectCache::__construct WANObjectCache::newEmpty.
Definition at line 1771 of file WANObjectCacheTest.php.
References and().
WANObjectCacheTest::testPreemtiveRefresh | ( | ) |
Definition at line 444 of file WANObjectCacheTest.php.
References $cache, $value, and(), WANObjectCache\getWithSetCallback(), WANObjectCache\setMockTime(), and wfRandomString().
WANObjectCacheTest::testProcessCache | ( | ) |
Definition at line 123 of file WANObjectCacheTest.php.
References $keys, and(), cache, and wfRandomString().
WANObjectCacheTest::testReap | ( | ) |
WANObjectCache::reap() WANObjectCache::reapCheckKey()
Definition at line 1512 of file WANObjectCacheTest.php.
References $value, and(), cache, and wfRandomString().
WANObjectCacheTest::testReap_fail | ( | ) |
WANObjectCache::reap()
Definition at line 1567 of file WANObjectCacheTest.php.
WANObjectCacheTest::testSetAndGet | ( | $value, | |
$ttl ) |
provideSetAndGet WANObjectCache::set() WANObjectCache::get() WANObjectCache::makeKey()
mixed | $value | |
int | $ttl |
Definition at line 49 of file WANObjectCacheTest.php.
References $t, $value, and(), cache, and wfRandomString().
WANObjectCacheTest::testSetLogger | ( | ) |
WANObjectCache::setLogger.
Definition at line 1781 of file WANObjectCacheTest.php.
WANObjectCacheTest::testSetOver | ( | ) |
WANObjectCache::set()
Definition at line 102 of file WANObjectCacheTest.php.
References $value, and(), cache, and wfRandomString().
WANObjectCacheTest::testSetWithLag | ( | ) |
WANObjectCache::set()
Definition at line 1593 of file WANObjectCacheTest.php.
References $value, and(), cache, and wfRandomString().
WANObjectCacheTest::testStaleSet | ( | ) |
WANObjectCache::set()
Definition at line 115 of file WANObjectCacheTest.php.
References $value, and(), cache, and wfRandomString().
WANObjectCacheTest::testStatsKeyClass | ( | $key, | |
$class ) |
statsKeyProvider WANObjectCache::determineKeyClassForStats
Definition at line 1846 of file WANObjectCacheTest.php.
References and().
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().
WANObjectCacheTest::testWritePending | ( | ) |
WANObjectCache::set()
Definition at line 1615 of file WANObjectCacheTest.php.
References $value, and(), cache, true, and wfRandomString().
|
private |
Definition at line 25 of file WANObjectCacheTest.php.
Referenced by testBusyValue(), testCheckKeyInitHoldoff(), testEpoch(), testGetMulti(), testGetMultiCheckKeys(), testGetMultiWithSetCallback(), testGetMultiWithUnionSetCallback(), testGetWithSetCallback(), testGetWithSetcallback_touched(), testGetWithSetCallback_versions(), testInterimHoldOffCaching(), testLockTSE(), testLockTSESlow(), testPreemtiveRefresh(), and testTouchKeys().
|
private |
Definition at line 27 of file WANObjectCacheTest.php.