MediaWiki REL1_32
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_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::determineKeyClass
 
 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 654 of file WANObjectCacheTest.php.

References false, and true.

◆ getMultiWithUnionSetCallback_provider()

static WANObjectCacheTest::getMultiWithUnionSetCallback_provider ( )
static

Definition at line 806 of file WANObjectCacheTest.php.

References false, and true.

◆ getWithSetCallback_provider()

static WANObjectCacheTest::getWithSetCallback_provider ( )
static

Definition at line 368 of file WANObjectCacheTest.php.

References false, and true.

◆ getWithSetCallback_versions_provider()

static WANObjectCacheTest::getWithSetCallback_versions_provider ( )
static

Definition at line 1236 of file WANObjectCacheTest.php.

References false, and true.

◆ provideAdaptiveTTL()

static WANObjectCacheTest::provideAdaptiveTTL ( )
static

Definition at line 1633 of file WANObjectCacheTest.php.

◆ provideSetAndGet()

static WANObjectCacheTest::provideSetAndGet ( )
static

Definition at line 74 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 1713 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 1619 of file WANObjectCacheTest.php.

References cache.

◆ testBusyValue()

WANObjectCacheTest::testBusyValue ( )

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

Definition at line 891 of file WANObjectCacheTest.php.

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

◆ testCheckKeyInitHoldoff()

WANObjectCacheTest::testCheckKeyInitHoldoff ( )

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

Definition at line 1090 of file WANObjectCacheTest.php.

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

◆ testDelete()

WANObjectCacheTest::testDelete ( )

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

Definition at line 1124 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testEpoch()

◆ testGetMulti()

WANObjectCacheTest::testGetMulti ( )

◆ testGetMultiCheckKeys()

WANObjectCacheTest::testGetMultiCheckKeys ( )

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

Definition at line 1009 of file WANObjectCacheTest.php.

References $cache, as, 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 496 of file WANObjectCacheTest.php.

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

◆ testGetMultiWithUnionSetCallback()

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

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

Parameters
array$extOpts
bool$versioned

Definition at line 668 of file WANObjectCacheTest.php.

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

◆ testGetNotExists()

WANObjectCacheTest::testGetNotExists ( )

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

Definition at line 92 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testGetQoS()

WANObjectCacheTest::testGetQoS ( )

WANObjectCache::getQoS.

Definition at line 1664 of file WANObjectCacheTest.php.

◆ testGetWithSetCallback()

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

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

Parameters
array$extOpts
bool$versioned

Definition at line 188 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().

◆ testGetWithSetCallback_invalidCallback()

WANObjectCacheTest::testGetWithSetCallback_invalidCallback ( )

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

Definition at line 483 of file WANObjectCacheTest.php.

References cache.

◆ testGetWithSetCallback_versions()

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

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

Parameters
array$extOpts
bool$versioned

Definition at line 1167 of file WANObjectCacheTest.php.

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

◆ testGetWithSeveralCheckKeys()

WANObjectCacheTest::testGetWithSeveralCheckKeys ( )

WANObjectCache::getMulti()

Definition at line 1344 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testInterimHoldOffCaching()

WANObjectCacheTest::testInterimHoldOffCaching ( )

WANObjectCache::useInterimHoldOffCaching WANObjectCache::getInterimValue.

Definition at line 1247 of file WANObjectCacheTest.php.

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

◆ testLockTSE()

WANObjectCacheTest::testLockTSE ( )

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

Definition at line 817 of file WANObjectCacheTest.php.

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

◆ testLockTSESlow()

WANObjectCacheTest::testLockTSESlow ( )

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

Definition at line 858 of file WANObjectCacheTest.php.

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

◆ testMakeGlobalKey()

WANObjectCacheTest::testMakeGlobalKey ( )

WANObjectCache::makeGlobalKey.

Definition at line 1698 of file WANObjectCacheTest.php.

◆ testMakeKey()

WANObjectCacheTest::testMakeKey ( )

WANObjectCache::makeKey.

Definition at line 1680 of file WANObjectCacheTest.php.

◆ testMcRouterSupport()

WANObjectCacheTest::testMcRouterSupport ( )

Definition at line 1490 of file WANObjectCacheTest.php.

◆ testMcRouterSupportBroadcastDelete()

WANObjectCacheTest::testMcRouterSupportBroadcastDelete ( )

Definition at line 1518 of file WANObjectCacheTest.php.

◆ testMcRouterSupportBroadcastResetCK()

WANObjectCacheTest::testMcRouterSupportBroadcastResetCK ( )

Definition at line 1554 of file WANObjectCacheTest.php.

◆ testMcRouterSupportBroadcastTouchCK()

WANObjectCacheTest::testMcRouterSupportBroadcastTouchCK ( )

Definition at line 1536 of file WANObjectCacheTest.php.

◆ testNewEmpty()

WANObjectCacheTest::testNewEmpty ( )

WANObjectCache::__construct WANObjectCache::newEmpty.

Definition at line 1647 of file WANObjectCacheTest.php.

◆ testPreemtiveRefresh()

WANObjectCacheTest::testPreemtiveRefresh ( )

◆ testProcessCache()

WANObjectCacheTest::testProcessCache ( )

Definition at line 125 of file WANObjectCacheTest.php.

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

◆ testReap()

WANObjectCacheTest::testReap ( )

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

Definition at line 1376 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testReap_fail()

WANObjectCacheTest::testReap_fail ( )

WANObjectCache::reap()

Definition at line 1431 of file WANObjectCacheTest.php.

References $ret.

◆ testSetAndGet()

WANObjectCacheTest::testSetAndGet (   $value,
  $ttl 
)

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

Parameters
mixed$value
int$ttl

Definition at line 51 of file WANObjectCacheTest.php.

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

◆ testSetLogger()

WANObjectCacheTest::testSetLogger ( )

WANObjectCache::setLogger.

Definition at line 1657 of file WANObjectCacheTest.php.

References cache.

◆ testSetOver()

WANObjectCacheTest::testSetOver ( )

WANObjectCache::set()

Definition at line 104 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testSetWithLag()

WANObjectCacheTest::testSetWithLag ( )

WANObjectCache::set()

Definition at line 1459 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testStaleSet()

WANObjectCacheTest::testStaleSet ( )

WANObjectCache::set()

Definition at line 117 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testStatsKeyClass()

WANObjectCacheTest::testStatsKeyClass (   $key,
  $class 
)

statsKeyProvider WANObjectCache::determineKeyClass

Definition at line 1726 of file WANObjectCacheTest.php.

◆ testTouchKeys()

WANObjectCacheTest::testTouchKeys ( )

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

Definition at line 1303 of file WANObjectCacheTest.php.

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

◆ testWritePending()

WANObjectCacheTest::testWritePending ( )

WANObjectCache::set()

Definition at line 1481 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: