org.craft.atom.redis.spi.Sharded Maven / Gradle / Ivy
package org.craft.atom.redis.spi;
import java.util.List;
import org.craft.atom.redis.api.RedisCommand;
/**
* Implements this interface to provide custom sharded algorithm.
*
* @author mindwind
* @version 1.0, Jun 25, 2013
*/
public interface Sharded {
/**
* @param shardkey
* @return redis shard by shardkey
*/
R shard(String shardkey);
/**
* @return all redis shards.
*/
List shards();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy