membase smart client intended usage
I'm using the membase 1.0.3 java smart client, talking to a specific bucket. I had some general questions about how to use the client.
1. Is it ok to call ClientManager.getClient() every time I want to access the cache, or is there overhead in calling getClient() such that I need to cache the MemcachedClient for a while?
2. Do I have to call MemcachedClient.shutdown() after each call to ClientManager.getClient(), or is it intended that the ClientManager will take care of this behind the scenes?
3. Will the ClientManager do the right thing to reconnect to a bucket if I delete that bucket and recreate it?