Implemented redis lock