static void Main(string[] args) { { for (int i = 0; i < 5; i++) { List <Program> programs = DBHelper.Query <Program>(); if (CacheManager.Contains("DBHelper")) { List <Program> programList = DBHelper.Query <Program>(); CacheManager.Add("DBHelper", programList); } List <Program> programResult = CacheManager.GetData <List <Program> >("DBHelper"); List <Program> result = CacheManager.Get <List <Program> >("DBHelper", () => DBHelper.Query <Program>(), 30); } for (int i = 0; i < 5; i++) { List <Program> programs = FileHelper.Query <Program>(); } for (int i = 0; i < 5; i++) { List <Program> programs = RemoteHelper.Query <Program>(); } } Console.ReadKey(); }