PHP Класс RedUNIT\Base\Writecache

The Query Writer Cache tries to avoid unnecessary queries by using cache markers. This means repeatingly fetching the same parent bean for instance (in loop) won't hurt performance. The Query Writer Cache gets emptied if the chain of markers gets broken. All 'non destructive' queries are marked, as long as no other queries have been executed we can safely assume nothing in the database has changed for the current request. You might want to turn this form of caching off in long running PHP processes.
Автор: Gabor de Mooij and the RedBeanPHP Community
Наследование: extends RedUNIT\Base
Показать файл Открыть проект

Открытые методы

Метод Описание
getTargetDrivers ( ) What drivers should be loaded for this test pack?
testCacheSize ( ) : void Test whether cache size remains constant (per type).
testCachingAndFetchAs ( ) When using fetchAs(), Query Cache does not recognize objects that have been previously fetched, see issue #400.
testCachingEffects ( ) : void Test effects of cache.
testConfusionRegression ( ) : void Can we confuse the cache?
testExplicitCacheFlush ( ) : void Test explicit flush.
testGhostBeans ( ) : void Test Ghost beans.
testInstructNoDrop ( ) : void Same as above.
testKeepCacheCommentInSQL ( ) : void Test keep-cache comment.
testRegressions ( ) : void Try to fool the cache :)

Описание методов

getTargetDrivers() публичный Метод

What drivers should be loaded for this test pack?
public getTargetDrivers ( )

testCacheSize() публичный Метод

Avoiding potential memory leaks. (Issue #424).
public testCacheSize ( ) : void
Результат void

testCachingAndFetchAs() публичный Метод

When using fetchAs(), Query Cache does not recognize objects that have been previously fetched, see issue #400.

testCachingEffects() публичный Метод

Test effects of cache.
public testCachingEffects ( ) : void
Результат void

testConfusionRegression() публичный Метод

Can we confuse the cache?
public testConfusionRegression ( ) : void
Результат void

testExplicitCacheFlush() публичный Метод

Test explicit flush.
public testExplicitCacheFlush ( ) : void
Результат void

testGhostBeans() публичный Метод

...
public testGhostBeans ( ) : void
Результат void

testInstructNoDrop() публичный Метод

. test keep cache.
public testInstructNoDrop ( ) : void
Результат void

testKeepCacheCommentInSQL() публичный Метод

Test keep-cache comment.
public testKeepCacheCommentInSQL ( ) : void
Результат void

testRegressions() публичный Метод

Try to fool the cache :)
public testRegressions ( ) : void
Результат void