| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Seam
Revision: 8914
Author: pete.muir@jboss.org
Date: 04 Sep 2008 18:38:33
Changes:JBSEAM-3382, thanks to Przemyslaw Jaskierski
Files:| ... | ...@@ -36,7 +36,7 @@ | |
| 36 | 36 | if (cache.isEnabled()) |
| 37 | 37 | { |
| 38 | 38 | String key = cache.getKey(); |
| 39 | String cachedContent = (String) cache.getCacheProvider().get(key, cache.getRegion()); | |
| 39 | String cachedContent = (String) cache.getCacheProvider().get(cache.getRegion(), key); | |
| 40 | 40 | if (cachedContent == null) |
| 41 | 41 | { |
| 42 | 42 | log.debug("rendering from scratch: " + key); |
| ... | ...@@ -47,7 +47,7 @@ | |
| 47 | 47 | context.setResponseWriter(writer); |
| 48 | 48 | String output = stringWriter.getBuffer().toString(); |
| 49 | 49 | writer.write(output); |
| 50 | cache.getCacheProvider().put(key, cache.getRegion(), output); | |
| 50 | cache.getCacheProvider().put(cache.getRegion(), key, output); | |
| 51 | 51 | } |
| 52 | 52 | else |
| 53 | 53 | { |
| ... | ...@@ -71,7 +71,7 @@ | |
| 71 | 71 | * @param key - a key to identify the object. |
| 72 | 72 | * @return - the object if found or null if not |
| 73 | 73 | */ |
| 74 | public abstract Object get(String key, String region); | |
| 74 | public abstract Object get(String region, String key); | |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | 77 | * Put an object into the cache. The object is placed in the default cache |