Wrapper for redis functions