Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I was going through Caching concept in Umbraco and find the way to get and set items in Cache using Umbraco.Core.CacheHelper class.
On deeper analysis of this class i found that almost all the methods of this class are decorated with obselete attribute as follows:-
[Obsolete("Do not use this method, access the runtime cache from the RuntimeCache property")]
I am planning to use RunTimeCache property for caching purposes. Is this fine?
var current = ApplicationContext.Current;
var cacheHelper = current.ApplicationCache;
What do you want to store in cache?
Can you describe type of data, and how this data will be used?
Add a using:
Then use the methods available on
Everything you need and more!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted