protected List<byte[]> execSort(byte[] keyBytes, byte[] sortSpecBytes)
throws IllegalStateException, RedisException {
List<byte[]> multiBulkData= null;
try {
MultiBulkResponse MultiBulkResponse = (MultiBulkResponse) client.serviceRequest(Command.SORT, keyBytes, sortSpecBytes);
multiBulkData = MultiBulkResponse.getMultiBulkData();
}
catch (ClassCastException e){
throw new ProviderException("Expecting a MultiBulkResponse here => " + e.getLocalizedMessage(), e);
}
return multiBulkData;