我想清除托管的 aws elasticache memcached 实例。我想从 java 以编程方式执行此操作。
我试过这个没有成功:
net.spy.memcached.MemcachedClient client = new net.spy.memcached.MemcachedClient(new BinaryConnectionFactory(),
AddrUtil.getAddresses(endpoint1+":11211"+" "+ endpoint2+":11211"));
client.flush();
如何在java中以编程方式清除缓存?