rolling your own java redis