Implemented type safe encapsulation of Redis hash