41

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"?

24

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).

  • Thanks. Guess I'll use shorter cache times instead of building something farm-wide. – ScarePoint Apr 7 '11 at 7:48
14

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

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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