سؤال

I want to clear a hosted aws elasticache memcached instance. I would like to do this programatically from java.

I have tried this without success:

 net.spy.memcached.MemcachedClient client = new net.spy.memcached.MemcachedClient(new BinaryConnectionFactory(),
 AddrUtil.getAddresses(endpoint1+":11211"+" "+ endpoint2+":11211"));

    client.flush();

How can I clear the cache programmatically in java?

هل كانت مفيدة؟

المحلول

The above code works. It was a permissions issue hitting the endpoint.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top