added redis support