simple redis implementation