org.infinispan.persistence.redis.client.RedisClusterNodeIterable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-cachestore-redis
Show all versions of infinispan-cachestore-redis
Infinispan CacheStore using Redis
The newest version!
package org.infinispan.persistence.redis.client;
import redis.clients.jedis.JedisCluster;
import java.util.Iterator;
final public class RedisClusterNodeIterable implements Iterable {
private final JedisCluster client;
private final String prefix;
public RedisClusterNodeIterable(JedisCluster client, String prefix) {
this.client = client;
this.prefix = prefix;
}
@Override
public Iterator iterator() {
return new RedisClusterNodeIterator(client, prefix);
}
}