@Test public void testGetResolvedAddrList() { String hostsStr = "localhost:11211,fafddafaf:11211,fadfafaerqr:11211"; List<InetSocketAddress> addrList = MemcachedCache.getResolvedAddrList(hostsStr); Assert.assertEquals(1, addrList.size()); }
public static List<InetSocketAddress> getResolvedAddrList(String hostsStr) { List<InetSocketAddress> addrs = AddrUtil.getAddresses(hostsStr); Iterator<InetSocketAddress> addrIterator = addrs.iterator(); while (addrIterator.hasNext()) { if (addrIterator.next().isUnresolved()) { addrIterator.remove(); } } return addrs; }
MemcachedCache { public static List<InetSocketAddress> getResolvedAddrList(String hostsStr) { List<InetSocketAddress> addrs = AddrUtil.getAddresses(hostsStr); Iterator<InetSocketAddress> addrIterator = addrs.iterator(); while (addrIterator.hasNext()) { if (addrIterator.next().isUnresolved()) { addrIterator.remove(); } } return addrs; } }
MemcachedCache { public static List<InetSocketAddress> getResolvedAddrList(String hostsStr) { List<InetSocketAddress> addrs = AddrUtil.getAddresses(hostsStr); Iterator<InetSocketAddress> addrIterator = addrs.iterator(); while (addrIterator.hasNext()) { if (addrIterator.next().isUnresolved()) { addrIterator.remove(); } } return addrs; } MemcachedCache(final MemcachedClientIF client, final MemcachedCacheConfig config,
            final String memcachedPrefix, int timeToLiveSeconds);  MemcachedCache(MemcachedCache cache); }
MemcachedCache { public static List<InetSocketAddress> getResolvedAddrList(String hostsStr) { List<InetSocketAddress> addrs = AddrUtil.getAddresses(hostsStr); Iterator<InetSocketAddress> addrIterator = addrs.iterator(); while (addrIterator.hasNext()) { if (addrIterator.next().isUnresolved()) { addrIterator.remove(); } } return addrs; } MemcachedCache(final MemcachedClientIF client, final MemcachedCacheConfig config,
            final String memcachedPrefix, int timeToLiveSeconds);  MemcachedCache(MemcachedCache cache); static MemcachedCache create(final MemcachedCacheConfig config, String memcachedPrefix); static MemcachedCache create(final MemcachedCacheConfig config, String memcachedPrefix, int timeToLive); static List<InetSocketAddress> getResolvedAddrList(String hostsStr); String getName(); Object getNativeCache(); byte[] get(Object key); byte[] get(String keyS); void put(Object key, Object value); void put(String keyS, Object value); void evict(Object key); void evict(String keyS); void clear(); CacheStats getStats(); }
MemcachedCache { public static List<InetSocketAddress> getResolvedAddrList(String hostsStr) { List<InetSocketAddress> addrs = AddrUtil.getAddresses(hostsStr); Iterator<InetSocketAddress> addrIterator = addrs.iterator(); while (addrIterator.hasNext()) { if (addrIterator.next().isUnresolved()) { addrIterator.remove(); } } return addrs; } MemcachedCache(final MemcachedClientIF client, final MemcachedCacheConfig config,
            final String memcachedPrefix, int timeToLiveSeconds);  MemcachedCache(MemcachedCache cache); static MemcachedCache create(final MemcachedCacheConfig config, String memcachedPrefix); static MemcachedCache create(final MemcachedCacheConfig config, String memcachedPrefix, int timeToLive); static List<InetSocketAddress> getResolvedAddrList(String hostsStr); String getName(); Object getNativeCache(); byte[] get(Object key); byte[] get(String keyS); void put(Object key, Object value); void put(String keyS, Object value); void evict(Object key); void evict(String keyS); void clear(); CacheStats getStats(); static final int MAX_PREFIX_LENGTH; }