Coffeehouse Post

Single Post Permalink

View Thread: Cannot get "Show Me The Cache" Achievement to work
  • User profile image

    This is in my web.config of a Azure WCF Service Project.

    <dataCacheClient name="default">
        <host name="***" cachePort="22233" />
      <securityProperties mode="Message">
        <messageSecurity authorizationInfo="***"></messageSecurity>

    Here is the use of it in code

    string GetCache()
        DataCacheFactory cacheFactory = new DataCacheFactory();
        DataCache cache = cacheFactory.GetDefaultCache();
        cache.Put("item", "value");
        var r = (string)cache.Get("item");
        return r;

    Also this is the last achievement i need to have them all so please help.  Thanks so much.