converted to mvc
added redis support