Friday, January 29, 2016

Drop stuff out of the cache in C#.

System.Web.HttpContext.Current.Cache.Remove("bytes");

Otherwise you may put stuff to and from Cache as you would Session with the square brackets and do null checks the same way. At an .ashx you may get .Cache off of the context.

No comments:

Post a Comment