Using Moxi and vBucket
I am using spymemcached-2.7.jar, which is vBucket aware client.
Here is my code
URI base = new URI("http://<membase-server-ip>:8091/pools"); ArrayList baseURIs = new ArrayList(); baseURIs.add(base); MemcachedClient c = new MemcachedClient(baseURIs, "bucket1", "");
I wish to use the moxi as the base url instead of the actual membase server, because, that will help me adding a new membase servers to the cluster without changing this code, or a config file & without restarting application servers.
URI base = new URI("http://localhost:11211/pools"); and installed moxi on the client machine.
But it doesn't work. It didn't give any error, it just wait in order to get connected.
What am I doing wrong? Please help.