Given
client = new XMemcachedClient(server, port);
What happens if I have several thread doing this:
object = client.get(key);
In the (quite empty) xmemcached javadoc I see no mention of synchronization.
- is
MemcachedClient.get
synchronized? if not, have I got to synchronize it myself? - can calls to memcached be done in parallel, in order to avoid my threads to be blocked? Do I need to instanciate one
MemcachedClient
per thread or is the current code capable of this already?