Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can create multiple instances with different settings? #4

Open
LeifWarner opened this issue Feb 21, 2012 · 1 comment
Open

Can create multiple instances with different settings? #4

LeifWarner opened this issue Feb 21, 2012 · 1 comment

Comments

@LeifWarner
Copy link

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.

@ikai
Copy link
Owner

ikai commented Feb 21, 2012

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants