Using redis through dependency injection