Hello,
We just downloaded the xmemcached and started to integrate it with our
existing web application code. I had a few questions regarding the
sample code I found in the following link -
http://code.google.com/p/xmemcached/source/browse/trunk/src/test/java/net/rubyeye/xmemcached/example/SimpleExample.java?r=639
1) After each get/set/delete - shutdown is necessary?
2) In a web application - do you have any suggestion of how to
estimate the client pool size? MemcachedClientBuilder - does each
return of builder.build() call - returns a new client? Should we
create a client pool or the client implementation takes care of so
many calls to it in production?
3) Occaisionally we are getting an exception
java.util.concurrent.TimeoutException: Timed out(1000) waiting for
operation
but immediate fetches are ok. We have set the default expiry as 30
days in seconds - since we are caching read-only data that never
changes. Is there a way to never expire?
4) Any other tips or best practices to follow for production web
application?
Thanks,
Rumpa