basic cache question RRS feed

  • Question

  • I am using WCF and Azure caching and I am new at it.  It seems pretty simple, but I am wondering, do I need to make the checks for whether or not there is something in the cache thread safe, so to speak? 

    For example, if I test and the cache is null, should I lock, test again to be sure that another user didnt already update the cache, and then lock again, and then go get the data and update the cache?

    (everyone gets the same data for this cache and I only have to update it once a minute).



    • Edited by daniel310 Friday, January 11, 2013 10:05 PM
    Friday, January 11, 2013 10:03 PM


All replies