jruby-memcache-client icon indicating copy to clipboard operation
jruby-memcache-client copied to clipboard

Can create multiple instances with different settings?

Open LeifWarner opened this issue 13 years ago • 1 comments

Is this lib a singleton? When I try to create multiple instances pointing at different servers, with different settings, all instances seem to use the same settings and point at the same server.

LeifWarner avatar Feb 21 '12 18:02 LeifWarner

According to this code, no:

https://github.com/ikai/jruby-memcache-client/blob/master/lib/memcache.rb

When you create a new instance, it just instantiates the underlying Java MemCacheClient object:

https://github.com/gwhalin/Memcached-Java-Client/blob/master/src/com/meetup/memcached/MemcachedClient.java

(Also, I haven't touched this code or used this client in maybe 3 years so please correct me if I am wrong)

ikai avatar Feb 21 '12 18:02 ikai