@Test public void testCaEhcache() throws Exception { @SuppressWarnings("resource") CaEhcache<String, String> ca = new CaEhcache<String, String>(NAME, cacheManager.getCache(NAME, String.class, String.class)); String key = "key1"; CaValue<String, String> val = ca.read(key); LOG.info(val.toString()); Assert.assertEquals(null, val.value()); ca.write(CaValue.newVal(key, "val1")); val = ca.read(key); LOG.info(val.toString()); Assert.assertEquals("val1", val.value()); Thread.sleep(6000L); val = ca.read(key); LOG.info(val.toString()); Assert.assertEquals(null, val.value()); }
public CaEhcache(String name, Cache<K, V> ca) { super(name, CaType.Local); this.ca = ca; }
CaEhcache extends BasicCa<K, V> { public CaEhcache(String name, Cache<K, V> ca) { super(name, CaType.Local); this.ca = ca; } }
CaEhcache extends BasicCa<K, V> { public CaEhcache(String name, Cache<K, V> ca) { super(name, CaType.Local); this.ca = ca; } CaEhcache(String name, Cache<K, V> ca); }
CaEhcache extends BasicCa<K, V> { public CaEhcache(String name, Cache<K, V> ca) { super(name, CaType.Local); this.ca = ca; } CaEhcache(String name, Cache<K, V> ca);  }
CaEhcache extends BasicCa<K, V> { public CaEhcache(String name, Cache<K, V> ca) { super(name, CaType.Local); this.ca = ca; } CaEhcache(String name, Cache<K, V> ca);   }