Moved redis to an instance method and extracted few methods