MediaWiki  1.29.2
WANObjectCacheTest Class Reference
Inheritance diagram for WANObjectCacheTest:
Collaboration diagram for WANObjectCacheTest:

Public Member Functions

 testAdaptiveTTL ( $ago, $maxTTL, $minTTL, $factor, $adaptiveTTL)
 provideAdaptiveTTL WANObjectCache::adaptiveTTL() More...
 
 testBusyValue ()
 WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback() More...
 
 testCheckKeyInitHoldoff ()
 WANObjectCache::get() WANObjectCache::processCheckKeys() More...
 
 testDelete ()
 WANObjectCache::delete() More...
 
 testGetMulti ()
 WANObjectCache::getMulti() More...
 
 testGetMultiCheckKeys ()
 WANObjectCache::getMulti() WANObjectCache::processCheckKeys() More...
 
 testGetMultiWithSetCallback (array $extOpts, $versioned)
 getMultiWithSetCallback_provider WANObjectCache::getMultiWithSetCallback() WANObjectCache::makeMultiKeys() More...
 
 testGetNotExists ()
 WANObjectCache::get() WANObjectCache::makeGlobalKey() More...
 
 testGetWithSetCallback (array $extOpts, $versioned)
 getWithSetCallback_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback() More...
 
 testGetWithSetCallback_versions (array $extOpts, $versioned)
 getWithSetCallback_versions_provider More...
 
 testGetWithSeveralCheckKeys ()
 WANObjectCache::getMulti() More...
 
 testLockTSE ()
 WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback() More...
 
 testLockTSESlow ()
 WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback() More...
 
 testMcRouterSupport ()
 
 testProcessCache ()
 
 testReap ()
 WANObjectCache::reap() WANObjectCache::reapCheckKey() More...
 
 testSetAndGet ( $value, $ttl)
 provideSetAndGet WANObjectCache::set() WANObjectCache::get() WANObjectCache::makeKey() More...
 
 testSetOver ()
 WANObjectCache::set() More...
 
 testSetWithLag ()
 WANObjectCache::set() More...
 
 testStaleSet ()
 WANObjectCache::set() More...
 
 testTouchKeys ()
 WANObjectCache::touchCheckKey() WANObjectCache::resetCheckKey() WANObjectCache::getCheckKeyTime() More...
 
 testWritePending ()
 WANObjectCache::set() More...
 

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
 

Detailed Description

Definition at line 5 of file WANObjectCacheTest.php.

Member Function Documentation

◆ getMultiWithSetCallback_provider()

static WANObjectCacheTest::getMultiWithSetCallback_provider ( )
static

Definition at line 399 of file WANObjectCacheTest.php.

References false, and true.

◆ getWithSetCallback_provider()

static WANObjectCacheTest::getWithSetCallback_provider ( )
static

Definition at line 255 of file WANObjectCacheTest.php.

References false, and true.

◆ getWithSetCallback_versions_provider()

static WANObjectCacheTest::getWithSetCallback_versions_provider ( )
static

Definition at line 800 of file WANObjectCacheTest.php.

References false, and true.

◆ provideAdaptiveTTL()

static WANObjectCacheTest::provideAdaptiveTTL ( )
static

Definition at line 1015 of file WANObjectCacheTest.php.

◆ provideSetAndGet()

static WANObjectCacheTest::provideSetAndGet ( )
static

Definition at line 56 of file WANObjectCacheTest.php.

References object.

◆ setUp()

WANObjectCacheTest::setUp ( )
protected

Definition at line 11 of file WANObjectCacheTest.php.

References cache.

◆ 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 1001 of file WANObjectCacheTest.php.

References cache.

◆ testBusyValue()

◆ testCheckKeyInitHoldoff()

WANObjectCacheTest::testCheckKeyInitHoldoff ( )

◆ testDelete()

WANObjectCacheTest::testDelete ( )

◆ testGetMulti()

◆ testGetMultiCheckKeys()

◆ testGetMultiWithSetCallback()

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

◆ testGetNotExists()

WANObjectCacheTest::testGetNotExists ( )

◆ testGetWithSetCallback()

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

◆ testGetWithSetCallback_versions()

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

getWithSetCallback_versions_provider

Parameters
array$extOpts
$versioned

Definition at line 747 of file WANObjectCacheTest.php.

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

◆ testGetWithSeveralCheckKeys()

WANObjectCacheTest::testGetWithSeveralCheckKeys ( )

◆ testLockTSE()

◆ testLockTSESlow()

◆ testMcRouterSupport()

WANObjectCacheTest::testMcRouterSupport ( )

Definition at line 967 of file WANObjectCacheTest.php.

◆ testProcessCache()

WANObjectCacheTest::testProcessCache ( )

Definition at line 107 of file WANObjectCacheTest.php.

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

◆ testReap()

◆ testSetAndGet()

WANObjectCacheTest::testSetAndGet (   $value,
  $ttl 
)

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

Parameters
mixed$value
integer$ttl

Definition at line 33 of file WANObjectCacheTest.php.

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

◆ testSetOver()

WANObjectCacheTest::testSetOver ( )

WANObjectCache::set()

Definition at line 86 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testSetWithLag()

WANObjectCacheTest::testSetWithLag ( )

WANObjectCache::set()

Definition at line 936 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testStaleSet()

WANObjectCacheTest::testStaleSet ( )

WANObjectCache::set()

Definition at line 99 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testTouchKeys()

◆ testWritePending()

WANObjectCacheTest::testWritePending ( )

WANObjectCache::set()

Definition at line 958 of file WANObjectCacheTest.php.

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

Member Data Documentation

◆ $cache

◆ $internalCache

WANObjectCacheTest::$internalCache
private

Definition at line 9 of file WANObjectCacheTest.php.


The documentation for this class was generated from the following file: