io.craft.atom.redis.api.MasterSlaveShardedRedis Maven / Gradle / Ivy
package io.craft.atom.redis.api;
import java.util.List;
/**
* The master slave sharded redis client.
*
* @author mindwind
* @version 1.0, Jun 25, 2013
*/
public interface MasterSlaveShardedRedis extends ShardedRedisCommand {
/**
* @return all shards
*/
List shards();
/**
* @param shardkey
* @return MasterSlaveRedis instance by shardkey
*/
MasterSlaveRedis shard(String shardkey);
/**
* Enable all MasterSlaveRedis
shards read from slave and write on master.
*/
void enableReadSlave();
/**
* Disable all MasterSlaveRedis
shards read from slave.
*/
void disableReadSlave();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy