A couple of possibilities...

   - Do both applications have the same memcached server list?
   - Does the client use consistent hashing? If not, are the servers in a
   different order on the two applications?
   - Can you telnet and see the data after application A has put it in?
   - Is it possible (unlikely as it may seem) that the data was flushed for
   some reason?


On Mon, Mar 9, 2009 at 3:48 PM, Ritesh <[email protected]> wrote:

>
> Thanks for the reply Ray.
>
> Can two independent applications/processes access the same cache? I
> tried and am unable to do so.
> I have two web applications deployed under the same Weblogic instance.
> I put an object in the cache using application A and when I try to
> retrieve it using the same key in application B, I get a null
> reference back. Shouldn't both the applications have access to the
> same cache?
>
> On Mar 6, 6:11 pm, Ray Krueger <[email protected]> wrote:
> > > Is there a way to create cache regions using the spymemcached client?
> > > I'm aware of how one can create cache regions in hibernate. Is there a
> > > programmatic way of doing something analogous to that?
> >
> > > - Ritesh
> >
> > Memcached itself (regardless of what language or client library you
> > use) doesn't support namespaces or regions at all. See the faq under
> > "Namespaces".http://code.google.com/p/memcached/wiki/FAQ
> >
> > That being said...
> > The hibernate-memcached library, which uses spymemcached, handles
> > cache regions much in the same way mentioned in the FAQ. Region + key
> > = cache key.http://code.google.com/p/hibernate-memcached/
>



-- 
"If you see a whole thing - it seems that it's always beautiful. Planets,
lives... But up close a world's all dirt and rocks. And day to day, life's a
hard job, you get tired, you lose the pattern."
Ursula K. Le Guin

http://www.finsel.com/words,-words,-words.aspx (My blog) -
http://www.finsel.com/photo-gallery.aspx (My Photogallery)  -
http://www.reluctantdba.com/dbas-and-programmers/blog.aspx (My Professional
Blog)

Reply via email to