Documentation

E2E_Cache_TwoInstancesTest extends CiviEndToEndTestCase
in package

If you make two instances of a cache driver, do they coexist as you would expect?

Tags
group

e2e

Table of Contents

Properties

$a  : CacheInterface
$b  : CacheInterface

Methods

getSingleGenerators()  : mixed
Get a list of cache-creation specs.
getTwoGenerators()  : mixed
Get a list of distinct cache-creation specs.
setUpBeforeClass()  : void
testDiff_clearA()  : mixed
Add items to the two caches. Then clear the first.
testDiff_clearB()  : mixed
Add items to the two caches. Then clear the second.
testDiff_reload()  : mixed
Add items to the two caches. Then reload both caches and read from each.
testSingle_reload()  : mixed
Add item to one cache instance then read with another.
createTwoCaches()  : array<string|int, mixed>
setUp()  : void
tearDown()  : void

Properties

Methods

getSingleGenerators()

Get a list of cache-creation specs.

public getSingleGenerators() : mixed

getTwoGenerators()

Get a list of distinct cache-creation specs.

public getTwoGenerators() : mixed

testDiff_clearA()

Add items to the two caches. Then clear the first.

public testDiff_clearA(array<string|int, mixed> $cacheA, array<string|int, mixed> $cacheB) : mixed
Parameters
$cacheA : array<string|int, mixed>

Cache definition. See CRM_Utils_Cache::create().

$cacheB : array<string|int, mixed>

Cache definition. See CRM_Utils_Cache::create().

Tags
dataProvider

getTwoGenerators

testDiff_clearB()

Add items to the two caches. Then clear the second.

public testDiff_clearB(array<string|int, mixed> $cacheA, array<string|int, mixed> $cacheB) : mixed
Parameters
$cacheA : array<string|int, mixed>

Cache definition. See CRM_Utils_Cache::create().

$cacheB : array<string|int, mixed>

Cache definition. See CRM_Utils_Cache::create().

Tags
dataProvider

getTwoGenerators

testDiff_reload()

Add items to the two caches. Then reload both caches and read from each.

public testDiff_reload(array<string|int, mixed> $cacheA, array<string|int, mixed> $cacheB) : mixed
Parameters
$cacheA : array<string|int, mixed>

Cache definition. See CRM_Utils_Cache::create().

$cacheB : array<string|int, mixed>

Cache definition. See CRM_Utils_Cache::create().

Tags
dataProvider

getTwoGenerators

testSingle_reload()

Add item to one cache instance then read with another.

public testSingle_reload(array<string|int, mixed> $cacheDef) : mixed
Parameters
$cacheDef : array<string|int, mixed>

Cache definition. See CRM_Utils_Cache::create().

Tags
dataProvider

getSingleGenerators

createTwoCaches()

protected createTwoCaches(mixed $cacheA, mixed $cacheB) : array<string|int, mixed>
Parameters
$cacheA : mixed
$cacheB : mixed
Return values
array<string|int, mixed>

        
On this page

Search results