implement work with redis