jruby-memcache-client
jruby-memcache-client copied to clipboard
Can create multiple instances with different settings?
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.
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)