Properties

$collection

$collection : \MongoCollection

Type

\MongoCollection

Methods

testSetContainsFetchDelete()

testSetContainsFetchDelete(  $value) 

Parameters

$value

testUpdateExistingEntry()

testUpdateExistingEntry(  $value) 

Parameters

$value

testCacheKeyIsCaseSensitive()

testCacheKeyIsCaseSensitive() 

testFetchMultiple()

testFetchMultiple() 

testFetchMultipleWithNoKeys()

testFetchMultipleWithNoKeys() 

testSaveMultiple()

testSaveMultiple() 

provideDataToCache()

provideDataToCache() 

testDeleteIsSuccessfulWhenKeyDoesNotExist()

testDeleteIsSuccessfulWhenKeyDoesNotExist() 

testDeleteAll()

testDeleteAll() 

testCanHandleSpecialCacheIds()

testCanHandleSpecialCacheIds(  $id) 

Parameters

$id

testNoCacheIdCollisions()

testNoCacheIdCollisions() 

provideCacheIds()

provideCacheIds() : array

Returns cache ids with special characters that should still work.

For example, the characters :\/<>"*?| are not valid in Windows filenames. So they must be encoded properly. Each cache id should be considered different from the others.

Returns

array

testLifetime()

testLifetime() 

testNoExpire()

testNoExpire() 

testLongLifetime()

testLongLifetime() 

testDeleteAllAndNamespaceVersioningBetweenCaches()

testDeleteAllAndNamespaceVersioningBetweenCaches() 

testFlushAll()

testFlushAll() 

testFlushAllAndNamespaceVersioningBetweenCaches()

testFlushAllAndNamespaceVersioningBetweenCaches() 

testNamespace()

testNamespace() 

testDeleteAllNamespace()

testDeleteAllNamespace() 

testGetStats()

testGetStats() 

testSaveReturnsTrueWithAndWithoutTTlSet()

testSaveReturnsTrueWithAndWithoutTTlSet() 

testValueThatIsFalseBooleanIsProperlyRetrieved()

testValueThatIsFalseBooleanIsProperlyRetrieved() 

testMongoCursorExceptionsDoNotBubbleUp()

testMongoCursorExceptionsDoNotBubbleUp() 

isSharedStorage()

isSharedStorage() : boolean

Return whether multiple cache providers share the same storage.

This is used for skipping certain tests for shared storage behavior.

Returns

boolean

setUp()

setUp() 

tearDown()

tearDown()