Addded an extension method for easier cache creation