redis refactoring

attempt at decorator pattern and redis refactoring.