For example, in a ASP.NET page you would do something like
Cache.Add({...}) and access it via Cache[\"key\"]. In this context, Cache is th
Cache.Add({...})
Cache[\"key\"]
You need to type
HttpContext.Current.Cache
to access the instance. There is no Cache property declared at the Controller level, like on a Page.
Cache
Controller
Page
Note that the context that hosts the API will need to support caching.