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
Hi All,
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;
cacheHelper.RuntimeCache
Hi Naman,
What do you want to store in cache?
Can you describe type of data, and how this data will be used?
Thanks, Alex
Add a using:
using Umbraco.Core.Cache;
Then use the methods available on
ApplicationContext.Current.ApplicationCache.RuntimeCache
Everything you need and more!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Support for Caching In Umbraco
Hi All,
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;
cacheHelper.RuntimeCache
Hi Naman,
What do you want to store in cache?
Can you describe type of data, and how this data will be used?
Thanks, Alex
Add a using:
Then use the methods available on
Everything you need and more!
is working on a reply...