All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.craft.atom.redis.api.ShardedRedis Maven / Gradle / Ivy

There is a newer version: 3.1.2
Show newest version
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