MediaWiki
1.28.0
|
Static Public Member Functions | |
static | getMultiWithSetCallback_provider () |
static | getWithSetCallback_provider () |
static | getWithSetCallback_versions_provider () |
static | provideAdaptiveTTL () |
static | provideSetAndGet () |
Protected Member Functions | |
setUp () | |
Private Attributes | |
WANObjectCache | $cache |
$internalCache | |
Definition at line 3 of file WANObjectCacheTest.php.
|
static |
Definition at line 397 of file WANObjectCacheTest.php.
|
static |
Definition at line 253 of file WANObjectCacheTest.php.
|
static |
Definition at line 798 of file WANObjectCacheTest.php.
|
static |
Definition at line 954 of file WANObjectCacheTest.php.
|
static |
Definition at line 54 of file WANObjectCacheTest.php.
References object.
|
protected |
Definition at line 9 of file WANObjectCacheTest.php.
References cache, and TestingAccessWrapper\newFromObject().
WANObjectCacheTest::testAdaptiveTTL | ( | $ago, | |
$maxTTL, | |||
$minTTL, | |||
$factor, | |||
$adaptiveTTL | |||
) |
provideAdaptiveTTL WANObjectCache::adaptiveTTL()
float | int | $ago | |
int | $maxTTL | |
int | $minTTL | |
float | $factor | |
int | $adaptiveTTL |
Definition at line 940 of file WANObjectCacheTest.php.
References cache.
WANObjectCacheTest::testBusyValue | ( | ) |
WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
Definition at line 483 of file WANObjectCacheTest.php.
References $cache, $ret, $value, WANObjectCache\delete(), WANObjectCache\getWithSetCallback(), use, and wfRandomString().
WANObjectCacheTest::testCheckKeyInitHoldoff | ( | ) |
WANObjectCache::get() WANObjectCache::processCheckKeys()
Definition at line 672 of file WANObjectCacheTest.php.
References $cache, WANObjectCache\get(), WANObjectCache\set(), and wfRandomString().
WANObjectCacheTest::testDelete | ( | ) |
Definition at line 704 of file WANObjectCacheTest.php.
References $value, cache, WANObjectCache\HOLDOFF_NONE, and wfRandomString().
WANObjectCacheTest::testGetMulti | ( | ) |
Definition at line 537 of file WANObjectCacheTest.php.
References $cache, WANObjectCache\getCheckKeyTime(), WANObjectCache\getMulti(), WANObjectCache\set(), and wfRandomString().
WANObjectCacheTest::testGetMultiCheckKeys | ( | ) |
WANObjectCache::getMulti() WANObjectCache::processCheckKeys()
Definition at line 596 of file WANObjectCacheTest.php.
References $cache, as, WANObjectCache\getMulti(), WANObjectCache\HOLDOFF_NONE, WANObjectCache\set(), WANObjectCache\touchCheckKey(), and wfRandomString().
WANObjectCacheTest::testGetMultiWithSetCallback | ( | array | $extOpts, |
$versioned | |||
) |
getMultiWithSetCallback_provider WANObjectCache::getMultiWithSetCallback() WANObjectCache::makeMultiKeys()
array | $extOpts | |
bool | $versioned |
Definition at line 267 of file WANObjectCacheTest.php.
References $cache, $value, array(), cache, WANObjectCache\delete(), WANObjectCache\get(), WANObjectCache\getCheckKeyTime(), WANObjectCache\getMultiWithSetCallback(), WANObjectCache\makeMultiKeys(), use, and wfRandomString().
WANObjectCacheTest::testGetNotExists | ( | ) |
WANObjectCache::get() WANObjectCache::makeGlobalKey()
Definition at line 72 of file WANObjectCacheTest.php.
References $value, cache, and wfRandomString().
WANObjectCacheTest::testGetWithSetCallback | ( | array | $extOpts, |
$versioned | |||
) |
getWithSetCallback_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
array | $extOpts | |
bool | $versioned |
Definition at line 166 of file WANObjectCacheTest.php.
References $cache, $value, WANObjectCache\delete(), WANObjectCache\get(), WANObjectCache\getCheckKeyTime(), WANObjectCache\getWithSetCallback(), use, and wfRandomString().
WANObjectCacheTest::testGetWithSetCallback_versions | ( | array | $extOpts, |
$versioned | |||
) |
getWithSetCallback_versions_provider
array | $extOpts | |
$versioned |
Definition at line 745 of file WANObjectCacheTest.php.
References $cache, $value, WANObjectCache\delete(), WANObjectCache\getWithSetCallback(), use, and wfRandomString().
WANObjectCacheTest::testGetWithSeveralCheckKeys | ( | ) |
Definition at line 847 of file WANObjectCacheTest.php.
References $value, cache, WANObjectCache\PURGE_VAL_PREFIX, WANObjectCache\TIME_KEY_PREFIX, and wfRandomString().
WANObjectCacheTest::testLockTSE | ( | ) |
WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
Definition at line 408 of file WANObjectCacheTest.php.
References $cache, $ret, $value, WANObjectCache\delete(), WANObjectCache\getWithSetCallback(), use, and wfRandomString().
WANObjectCacheTest::testLockTSESlow | ( | ) |
WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
Definition at line 450 of file WANObjectCacheTest.php.
References $cache, $ret, $value, WANObjectCache\delete(), WANObjectCache\get(), WANObjectCache\getWithSetCallback(), use, and wfRandomString().
WANObjectCacheTest::testMcRouterSupport | ( | ) |
Definition at line 909 of file WANObjectCacheTest.php.
WANObjectCacheTest::testProcessCache | ( | ) |
Definition at line 105 of file WANObjectCacheTest.php.
References $keys, as, cache, use, and wfRandomString().
WANObjectCacheTest::testSetAndGet | ( | $value, | |
$ttl | |||
) |
provideSetAndGet WANObjectCache::set() WANObjectCache::get() WANObjectCache::makeKey()
mixed | $value | |
integer | $ttl |
Definition at line 31 of file WANObjectCacheTest.php.
References $t, $value, cache, and wfRandomString().
WANObjectCacheTest::testSetOver | ( | ) |
Definition at line 84 of file WANObjectCacheTest.php.
References $value, cache, and wfRandomString().
WANObjectCacheTest::testSetWithLag | ( | ) |
Definition at line 878 of file WANObjectCacheTest.php.
References $value, cache, and wfRandomString().
WANObjectCacheTest::testStaleSet | ( | ) |
Definition at line 97 of file WANObjectCacheTest.php.
References $value, cache, and wfRandomString().
WANObjectCacheTest::testTouchKeys | ( | ) |
WANObjectCache::touchCheckKey() WANObjectCache::resetCheckKey() WANObjectCache::getCheckKeyTime()
Definition at line 810 of file WANObjectCacheTest.php.
References cache, and wfRandomString().
WANObjectCacheTest::testWritePending | ( | ) |
Definition at line 900 of file WANObjectCacheTest.php.
References $value, cache, true, and wfRandomString().
|
private |
Definition at line 5 of file WANObjectCacheTest.php.
Referenced by testBusyValue(), testCheckKeyInitHoldoff(), testGetMulti(), testGetMultiCheckKeys(), testGetMultiWithSetCallback(), testGetWithSetCallback(), testGetWithSetCallback_versions(), testLockTSE(), and testLockTSESlow().
|
private |
Definition at line 7 of file WANObjectCacheTest.php.