SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The MSDN documentation on the SPCache leaves very much to the imagination. But since it sounds interesting, I'm wondering whether it is a farm-wide cache. Does anyone know?

Currently I'm caching using the System.Web.Cache, but this makes flushing cache entries across the farm difficult, so a built-in farm-wide solution would be quite preferable.

Is the SPCache the same as the "object cache"?

share|improve this question
Related question:…. It would be interesting to know all the details. – Kit Menke Apr 6 '11 at 21:29
@Kit Interesting, didn't see that. Curious that Michael thinks it is well documented. :) – ScarePoint Apr 7 '11 at 6:17
up vote 21 down vote accepted

Well, compared to the usual SharePoint documentation it's pretty well documented :)

I'm pretty sure it's not Farm Wide. Essentially it is a thread-safe Dictionary in memory of the server that uses it, and I have not seen anything that synchronizes it across the farm (I was planning to build my own object-cache for that purpose at some point).

share|improve this answer
Thanks. Guess I'll use shorter cache times instead of building something farm-wide. – ScarePoint Apr 7 '11 at 7:48

If you want a multi-server high performance cache consider using the AppFabric cache.

share|improve this answer
Agreed, Velocity also suppports claims based auth so it's quite easy to set up in a secure manner. – Wictor Wilen MCA MCM MVP Apr 9 '11 at 9:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.