ehcache-3

    2热度

    2回答

    出于某种原因,我无法将expiry元素添加到ehcache3配置xml中。没有expiry元素的 ,它工作正常。 <config xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://www.ehcache.org/v3' xmlns:jsr107='http://www.ehcache.org/

    0热度

    1回答

    我需要的Ehcache 3. 缓存空值的Ehcache 2,我发现喜欢这里的例子: http://www.ehcache.org/documentation/2.8/recipes/cachenull.html // cache an explicit null value: cache.put(new Element("key", null)); Element element = cac

    0热度

    1回答

    我想使用ehcache3。对于一些junit测试,我需要知道缓存中条目的大小。我没有找到一种方法。 如何获取ehcache 3中的条目大小(不是内存)? 电贺 本杰明

    0热度

    1回答

    我想完成的是为缓存设置TTL(生存时间)和TTI(时间到空闲),以便密钥在TTL时间,或者在TTI期间未被访问的情况下可以提前过期。 在的Ehcache 2有可能具有以下配置: <cache name="my.custom.Cache" timeToIdleSeconds="10" timeToLiveSeconds="120"> </cache> 在的Ehcache

    1热度

    2回答

    在此的CacheManager当时间限制与getTimeToLive(超过) private void setCacheInstance() { cacheManager .createCache("rateDataCached", CacheConfigurationBuilder .newCacheConfigurationBuilder(