Hi! I want to cache an object for 1 hour and I want to use EPiServer's CacheManager, but I read in this blog post, http://world.episerver.com/Blogs/Mattias-Lovstrom/Dates/2010/7/Caching-object-EPiServer-is-easier-then-you-probably-think/, that I should never use the RuntimeCache (if i'm not absolutely sure that I want to use the local cache). I have't worked with caching so much before so I'm a bit confused if this is the right time to use RuntimeCache or not since CacheManager.Add() doesn't take expiration as a parameter.
Hi!
I want to cache an object for 1 hour and I want to use EPiServer's CacheManager, but I read in this blog post, http://world.episerver.com/Blogs/Mattias-Lovstrom/Dates/2010/7/Caching-object-EPiServer-is-easier-then-you-probably-think/, that I should never use the RuntimeCache (if i'm not absolutely sure that I want to use the local cache). I have't worked with caching so much before so I'm a bit confused if this is the right time to use RuntimeCache or not since CacheManager.Add() doesn't take expiration as a parameter.
Thanks for all help on the subject!