Class EHCacheRegionTTLTest

java.lang.Object
de.hybris.platform.regioncache.test.EHCacheRegionTTLTest

@UnitTest public class EHCacheRegionTTLTest extends Object
Unit tests for EHCacheRegion
  • Constructor Details

    • EHCacheRegionTTLTest

      public EHCacheRegionTTLTest()
  • Method Details

    • testTTL

      public void testTTL() throws InterruptedException
      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