Method | Implementation | Sample uses |
---|---|---|
Programatic Caching | Set: Cache.Insert("UniqueKey", myData, null, DateTime.Now.AddMinutes(5), System.Web.Caching.Cache.NoSlidingExpiration); Get: Cache["UniqueKey"].ToString(); | |
Session State Caching | Set: Session.Add("UniqueKey", myData); Get: Session["UniqueKey"]; | |
Caching to Disk | Application Cache Block | |
Caching to Database | CodeProject Article |
link
No comments:
Post a Comment