This returns the shard id and a connection to shard for a single key. If the key does not belong to any shard, this returns (-1, nil). Note that the connection may be nil for valid shard id (for instance, if the shard server is temporarily unavailable).

GetShard is referenced in 1 repository