Get pid of memcached instance my app is connected to?

Hi all. I’m using memcache-client to connect to memcached in my rails
app. I’m having some weirdness on my production server and have several
memcached instances running. Is there a way to get the pid of the one
that my app is actually connected to?

thanks, max

CACHE.stats[:pid]

m

Marc B. wrote:

CACHE.stats[:pid]

m

ah thanks Marc - with my version it’s actually CACHE.stats[“pid”] but
you put me on the right track :slight_smile: cheers!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs