From e6d9b6308e26f27df99cca60684fd8b1ae363403 Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Fri, 7 Oct 2011 19:42:09 +0000 Subject: [PATCH] some cache doc updates --- spring-framework-reference/src/cache.xml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/spring-framework-reference/src/cache.xml b/spring-framework-reference/src/cache.xml index 4c6227b82c4..32a468f6888 100644 --- a/spring-framework-reference/src/cache.xml +++ b/spring-framework-reference/src/cache.xml @@ -501,7 +501,7 @@ public Book findBook(ISBN isbn, boolean checkWarehouse, boolean includeUsed)]]>< The Ehcache implementation is located under org.springframework.cache.ehcache package. Again, to use it, one simply needs to declare the appropriate CacheManager: - + ]]> @@ -543,4 +543,13 @@ public Book findBook(ISBN isbn, boolean checkWarehouse, boolean includeUsed)]]>< can fill in this small configuration gap. +
+ How can I set the TTL/TTI/Eviction policy/XXX feature? + + Directly through your cache provider. The cache abstraction is... well, an abstraction not a cache implementation. The solution you are using might support various data policies and different + topologies which other solutions do not (take for example the JDK ConcurrentHashMap) - exposing that in the cache abstraction would be useless simply because there would + no backing support. Such functionality should be controlled directly through the backing cache, when configuring it or through its native API. + +
+