System.Web.Caching.Cache
is a class - you see people using a property named Cache
that is an instance of System.Web.Caching.Cache
. If you're using it outside of a class that provides you with the Cache
property, access it using System.Web.HttpRuntime.Cache
:
var settings = System.Web.HttpRuntime.Cache[cacheKey] as Dictionary<string, bool>;