Redis implementation in java