MediaWiki
1.33.0
|
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...
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.
References cache.
WANObjectCacheTest::testBusyValue | ( | ) |
WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
Definition at line 1010 of file WANObjectCacheTest.php.
References $cache, $ret, $value, WANObjectCache\delete(), WANObjectCache\getWithSetCallback(), WANObjectCache\setMockTime(), use, and wfRandomString().
WANObjectCacheTest::testCheckKeyInitHoldoff | ( | ) |
WANObjectCache::get() WANObjectCache::processCheckKeys()
Definition at line 1213 of file WANObjectCacheTest.php.
References $cache, WANObjectCache\get(), WANObjectCache\set(), and wfRandomString().
WANObjectCacheTest::testDelete | ( | ) |
WANObjectCache::delete WANObjectCache::relayDelete WANObjectCache::relayPurge.
Definition at line 1247 of file WANObjectCacheTest.php.
References $value, cache, WANObjectCache\HOLDOFF_NONE, and wfRandomString().
WANObjectCacheTest::testEpoch | ( | ) |
Definition at line 1698 of file WANObjectCacheTest.php.
References $cache, WANObjectCache\get(), WANObjectCache\getCheckKeyTime(), WANObjectCache\makeGlobalKey(), WANObjectCache\set(), WANObjectCache\setMockTime(), and WANObjectCache\touchCheckKey().
WANObjectCacheTest::testGetMulti | ( | ) |
Definition at line 1068 of file WANObjectCacheTest.php.
References $cache, captcha-old\count, 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, as, WANObjectCache\getMulti(), WANObjectCache\HOLDOFF_NONE, 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, array(), cache, class, captcha-old\count, WANObjectCache\delete(), WANObjectCache\get(), WANObjectCache\getCheckKeyTime(), WANObjectCache\getMultiWithSetCallback(), WANObjectCache\getWarmupKeyMisses(), WANObjectCache\makeMultiKeys(), WANObjectCache\setMockTime(), use, WANObjectCache\VALUE_KEY_PREFIX, 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, array(), as, cache, captcha-old\count, WANObjectCache\delete(), WANObjectCache\get(), WANObjectCache\getCheckKeyTime(), WANObjectCache\getMultiWithUnionSetCallback(), WANObjectCache\getWarmupKeyMisses(), WANObjectCache\makeMultiKeys(), WANObjectCache\setMockTime(), use, and wfRandomString().
WANObjectCacheTest::testGetNotExists | ( | ) |
WANObjectCache::get() WANObjectCache::makeGlobalKey()
Definition at line 90 of file WANObjectCacheTest.php.
References $value, cache, and wfRandomString().
WANObjectCacheTest::testGetQoS | ( | ) |
Definition at line 1788 of file WANObjectCacheTest.php.
References class, and IExpiringStore\QOS_UNKNOWN.
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, array(), WANObjectCache\delete(), WANObjectCache\get(), WANObjectCache\getCheckKeyTime(), WANObjectCache\getWithSetCallback(), WANObjectCache\makeKey(), WANObjectCache\setMockTime(), WANObjectCache\touchCheckKey(), use, 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, array(), WANObjectCache\getWithSetCallback(), WANObjectCache\setMockTime(), use, 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, WANObjectCache\delete(), WANObjectCache\getWithSetCallback(), use, and wfRandomString().
WANObjectCacheTest::testGetWithSeveralCheckKeys | ( | ) |
Definition at line 1476 of file WANObjectCacheTest.php.
References $value, cache, WANObjectCache\PURGE_VAL_PREFIX, WANObjectCache\TIME_KEY_PREFIX, and wfRandomString().
WANObjectCacheTest::testInterimHoldOffCaching | ( | ) |
WANObjectCache::useInterimHoldOffCaching WANObjectCache::getInterimValue.
Definition at line 1370 of file WANObjectCacheTest.php.
References $cache, $value, WANObjectCache\delete(), WANObjectCache\getWithSetCallback(), WANObjectCache\setMockTime(), use, WANObjectCache\useInterimHoldOffCaching(), and wfRandomString().
WANObjectCacheTest::testLockTSE | ( | ) |
WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
Definition at line 885 of file WANObjectCacheTest.php.
References $cache, $ret, $value, WANObjectCache\delete(), WANObjectCache\getWithSetCallback(), WANObjectCache\setMockTime(), use, and wfRandomString().
WANObjectCacheTest::testLockTSESlow | ( | ) |
WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback() WANObjectCache::set()
Definition at line 930 of file WANObjectCacheTest.php.
References $cache, $ret, $value, WANObjectCache\get(), WANObjectCache\getWithSetCallback(), WANObjectCache\setMockTime(), use, and wfRandomString().
WANObjectCacheTest::testMakeGlobalKey | ( | ) |
WANObjectCache::makeGlobalKey.
Definition at line 1820 of file WANObjectCacheTest.php.
References class.
WANObjectCacheTest::testMakeKey | ( | ) |
WANObjectCacheTest::testMcRouterSupport | ( | ) |
Definition at line 1624 of file WANObjectCacheTest.php.
References class.
WANObjectCacheTest::testMcRouterSupportBroadcastDelete | ( | ) |
Definition at line 1650 of file WANObjectCacheTest.php.
References class.
WANObjectCacheTest::testMcRouterSupportBroadcastResetCK | ( | ) |
Definition at line 1682 of file WANObjectCacheTest.php.
References class.
WANObjectCacheTest::testMcRouterSupportBroadcastTouchCK | ( | ) |
Definition at line 1666 of file WANObjectCacheTest.php.
References class.
WANObjectCacheTest::testNewEmpty | ( | ) |
WANObjectCache::__construct WANObjectCache::newEmpty.
Definition at line 1771 of file WANObjectCacheTest.php.
References class, and WANObjectCache\newEmpty().
WANObjectCacheTest::testPreemtiveRefresh | ( | ) |
Definition at line 444 of file WANObjectCacheTest.php.
References $cache, $value, captcha-old\count, WANObjectCache\getWithSetCallback(), WANObjectCache\setMockTime(), use, and wfRandomString().
WANObjectCacheTest::testProcessCache | ( | ) |
Definition at line 123 of file WANObjectCacheTest.php.
References $keys, as, cache, use, and wfRandomString().
WANObjectCacheTest::testReap | ( | ) |
WANObjectCache::reap() WANObjectCache::reapCheckKey()
Definition at line 1512 of file WANObjectCacheTest.php.
References $value, cache, WANObjectCache\FLD_TIME, WANObjectCache\FLD_TTL, WANObjectCache\FLD_VALUE, WANObjectCache\FLD_VERSION, WANObjectCache\PURGE_VAL_PREFIX, WANObjectCache\TIME_KEY_PREFIX, WANObjectCache\VALUE_KEY_PREFIX, WANObjectCache\VERSION, and wfRandomString().
WANObjectCacheTest::testReap_fail | ( | ) |
Definition at line 1567 of file WANObjectCacheTest.php.
References $ret, class, WANObjectCache\FLD_TIME, WANObjectCache\FLD_TTL, WANObjectCache\FLD_VALUE, WANObjectCache\FLD_VERSION, and WANObjectCache\VERSION.
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, cache, and wfRandomString().
WANObjectCacheTest::testSetLogger | ( | ) |
Definition at line 1781 of file WANObjectCacheTest.php.
References cache.
WANObjectCacheTest::testSetOver | ( | ) |
Definition at line 102 of file WANObjectCacheTest.php.
References $value, cache, and wfRandomString().
WANObjectCacheTest::testSetWithLag | ( | ) |
Definition at line 1593 of file WANObjectCacheTest.php.
References $value, cache, and wfRandomString().
WANObjectCacheTest::testStaleSet | ( | ) |
Definition at line 115 of file WANObjectCacheTest.php.
References $value, cache, and wfRandomString().
WANObjectCacheTest::testStatsKeyClass | ( | $key, | |
$class | |||
) |
statsKeyProvider WANObjectCache::determineKeyClassForStats
Definition at line 1846 of file WANObjectCacheTest.php.
WANObjectCacheTest::testTouchKeys | ( | ) |
WANObjectCache::touchCheckKey WANObjectCache::resetCheckKey WANObjectCache::getCheckKeyTime WANObjectCache::getMultiCheckKeyTime WANObjectCache::makePurgeValue WANObjectCache::parsePurgeValue.
Definition at line 1435 of file WANObjectCacheTest.php.
References $cache, WANObjectCache\getCheckKeyTime(), WANObjectCache\resetCheckKey(), WANObjectCache\setMockTime(), WANObjectCache\touchCheckKey(), and wfRandomString().
WANObjectCacheTest::testWritePending | ( | ) |
Definition at line 1615 of file WANObjectCacheTest.php.
References $value, 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.