Redis plugin refactor