On Tue, Mar 10, 2009 at 12:44 PM, Ritesh <[email protected]> wrote: > > That worked! Thanks. > > I was looking at the javadocs and found something called as a > CacheMap. I want to use a CacheMap as a logical unit i.e. like a > region. If application A creates a CacheMap and populates it, how can > application B access the same CacheMap?
CacheMap is just a spymemcached backed implementation of the Map interface. You need to give it configured instance of MemcachedClientIF. Really the usage of this doesn't change for you at all from using MemcachedClient directly, other than you're using the Map interface as an abstraction.
