camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1358698 - /camel/trunk/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheConstants.java
Date Sun, 08 Jul 2012 06:43:24 GMT
Author: davsclaus
Date: Sun Jul  8 06:43:23 2012
New Revision: 1358698

URL: http://svn.apache.org/viewvc?rev=1358698&view=rev
Log:
CAMEL-5226: Added headers to set ttl,eternal etc. when adding/updating to cache. Thanks to
Mark Ford for the patch.

Modified:
    camel/trunk/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheConstants.java

Modified: camel/trunk/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheConstants.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheConstants.java?rev=1358698&r1=1358697&r2=1358698&view=diff
==============================================================================
--- camel/trunk/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheConstants.java
(original)
+++ camel/trunk/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheConstants.java
Sun Jul  8 06:43:23 2012
@@ -25,9 +25,9 @@ public interface CacheConstants {
     String CACHE_KEY = CACHE_HEADER_PREFIX + "Key";
     String CACHE_ELEMENT_WAS_FOUND = CACHE_HEADER_PREFIX + "ElementWasFound";
 
-    String CACHE_ELEMENT_EXPIRY_TTL = "TimeToLive";
-    String CACHE_ELEMENT_EXPIRY_IDLE = "TimeToIdle";
-    String CACHE_ELEMENT_EXPIRY_ETERNAL = "Eternal";
+    String CACHE_ELEMENT_EXPIRY_TTL = CACHE_HEADER_PREFIX + "TimeToLive";
+    String CACHE_ELEMENT_EXPIRY_IDLE = CACHE_HEADER_PREFIX + "TimeToIdle";
+    String CACHE_ELEMENT_EXPIRY_ETERNAL = CACHE_HEADER_PREFIX + "Eternal";
 
     String CACHE_OPERATION_URL_ADD = "Add";
     String CACHE_OPERATION_URL_UPDATE = "Update";



Mime
View raw message