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回答

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

    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