已答覆 avoid local cache and stale data

  • Wednesday, May 16, 2012 9:37 AM
     
     

    Ok, there's a good chance I get stale data from my local cache (the polling interval at which the local cache objects are possibly invalidated is set to 300 seconds by default). Therefore the MSDN documentation says to only put objects into the local cache which are changed infrequently. How can I tell AppFabric which objects should go to the local cache and which should only go into the cluster?

    Disabling the local cache entirely doesn't seem to be a fair tradeoff.

All Replies

  • Monday, May 21, 2012 12:03 PM
     
     Proposed
    There looks to be no way to specify which item go to cluster alone when local cache is enabled. Local cache is enabled at a DataCacheFactory level.
  • Thursday, May 24, 2012 9:42 PM
     
     Answered
    Exactly, create two DataCacheFactories. Configure one with local cache enabled and the other one with local cache disabled. With AppFabric 1.1 you can have both configurations in one .CONFIG file.

    David Pokluda (MSFT)
    http://blog.pokluda.com

    • Marked As Answer by Venenum Friday, May 25, 2012 6:44 AM
    •