Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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: stackoverflow.com/questions/5447317/…. 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

2 Answers 2

up vote 15 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

 
discard

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.