> is it re containsKey method moved from DirectMemoryCache to CacheService to > remove DirectMemoryCache class, this is quite normal that you can check a key > exists in a cahce. Also see map implementation interface which essentially > most caches are glorified maps, expose a method containsKey.
so why you still need a shortcut? JSR107 integration module can comfortably use that way to check keys. The use for a key check is potentially dangerous, as it may expire between checking for the key, and whatever you want to do with the stored object, and produce a race condition. http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/
