Tag: spring data gemfire

值未填充到gemfire缓存中

我有2个xml配置文件,如下所示 APP-context.xml中: 测试cache.xml info 我有一个名为TestCache.java的测试类 @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { “classpath:app-context.xml” }) public class TestCache { @Autowired GemfireTemplate testCache; @Test public void testgetSomeValues() { HashMap map1 = retrieveSomeValues(); HashMap map2 = retrieveSomeValues(); assertEquals(Map1, Map2); } @Cacheable(value = “testCache”) public HashMap retrieveSomeValues() { HashMap obj = new HashMap(); obj.put(“600”, “Auto”); obj.put(“601”, “Life”); return obj; } } 但我发现实际上没有任何东西被缓存到该地区。 […]

使用ClientRegionShortcut.PROXY以编程方式控制Gemfire区域的入门时间

是否可以将ClientCache与ClientRegionShortcut.PROXY一起使用以及对入口TTL设置(即服务器中存在的条目)的编程控制? 我看到条目到期ttl设置与ClientRegionShortcut.CACHING_PROXY_HEAP_LRU一起正常工作。 在这种情况下,我可以看到在配置的超时后服务器中的条目无效,以秒为单位,但ClientRegionShortcut.PROXY设置不是这种情况。 是否无法动态控制ClientCache的entry-ttl设置? code / config下面使用ClientRegionShortcut.CACHING_PROXY_HEAP_LRU使用ClientRegionShortcut.PROXY 。 Gemfire version is : 9.0.x pom如下所示 4.0.0 com.springboot.gemfire app 0.0.1-SNAPSHOT jar MyGemfireProject Test Concepts project for Spring Boot with Gemfire org.springframework.boot spring-boot-starter-parent 1.5.3.RELEASE UTF-8 UTF-8 1.8 org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-actuator org.springframework.boot spring-boot-starter-cache org.springframework.data spring-data-gemfire org.springframework.boot spring-boot-starter-test test org.modelmapper modelmapper 0.7.4 com.gemstone.gemfire gemfire 8.2.6 org.springframework.maven.milestone Spring Maven Milestone […]