Added InMemoryTemplateCache class.