@SuppressWarnings({ "unchecked", "hiding", "rawtypes" })
public <K, V> RedisAsyncConnectionImpl<K, V> getConnection(Intent intent, String host, int port) {
try {
logger.debug("getConnection(" + intent + ", " + host + ", " + port + ")");
PoolKey key = new PoolKey(intent, host, port);
RedisAsyncConnection connection = partitionPool.borrowObject(key);
partitionPool.returnObject(key, connection);
return (RedisAsyncConnectionImpl<K, V>) connection;
} catch (Exception e) {
throw new RedisException(e);
}