before redis