io.craft.atom.redis.api.ShardedRedis Maven / Gradle / Ivy
package io.craft.atom.redis.api;
import java.util.List;
/**
* The sharded redis client.
*
* In ShardedRedis
, use shardkey force certain keys to go to the same shard.
* In fact we use shardkey to select shard, so we can guarantee atomicity of command execution.
*
* @author mindwind
* @version 1.0, May 4, 2013
*/
public interface ShardedRedis extends ShardedRedisCommand {
/**
* @return all shards
*/
List shards();
/**
* @param shardkey
* @return Redis instance by shardkey
*/
Redis shard(String shardkey);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy