Class EHCacheRegionTTLTest
java.lang.Object
de.hybris.platform.regioncache.test.EHCacheRegionTTLTest
Unit tests for
EHCacheRegion-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtestTTL()Tests "Time to live" functionality of EHCacheRegion.
-
Constructor Details
-
EHCacheRegionTTLTest
public EHCacheRegionTTLTest()
-
-
Method Details
-
testTTL
Tests "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:
InterruptedException
-