Class EHCacheRegionTTLTest
- java.lang.Object
-
- de.hybris.platform.regioncache.test.EHCacheRegionTTLTest
-
@UnitTest public class EHCacheRegionTTLTest extends java.lang.Object
Unit tests forEHCacheRegion
-
-
Constructor Summary
Constructors Constructor Description EHCacheRegionTTLTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestTTL()Tests "Time to live" functionality of EHCacheRegion.
-
-
-
Method Detail
-
testTTL
public void testTTL() throws java.lang.InterruptedExceptionTests "Time to live" functionality of EHCacheRegion. This test adds one key/value to the cache and then measures the "time to live" for this key. It enforces eviction by periodic "ping" to the EHCache, because EHCache does ttl evictions synchronously with user requests (this means there must be some user request to perform "ttl eviction").- Throws:
java.lang.InterruptedException
-
-