Coffeehouse Thread

25 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Cannot get "Show Me The Cache" Achievement to work

Back to Forum: Coffeehouse
  • User profile image
    SportMan

    Hi! Is there any result? I have same problem Sad

    I've tried everything!

    Colocated, Dedicated, Shared caches. Local storages, Azure storages... I've really learned Azure Caching... But Sad

    Help plz, I can't sleep Sad

    PS: Sry, wrong account, http://channel9.msdn.com/niners/evangistudio/achievements/visualstudio

  • User profile image
    AceHack

    Okay I'm using version 3.0 and this Achievement still does not pop.  What's the deal!!!

    Using Azure SDK October 2012 and here is my code

    DataCache cache = new DataCache("default");
    cache.Add("item", "value");
    var value = cache.Get("item");
    cache.Remove("item"); 
    

    The code works.

    PLEASE HELP!!!

  • User profile image
    AceHack

    @karstenj:Okay so I've been able to get every other achievement including the new windows 8 ones but this one just will not work.  Please someone help!!!  Thanks.

  • User profile image
    AceHack

    Still can't git it.  Please Help!!!

    <dataCacheClients>
        <dataCacheClient name="default">
          <hosts>
            <host name="xxx.cache.windows.net" cachePort="22233" />
          </hosts>
          <securityProperties mode="Message">
            <messageSecurity authorizationInfo="[xxx]"></messageSecurity>
          </securityProperties>
        </dataCacheClient>
        <dataCacheClient name="SslEndpoint">
          <hosts>
            <host name="xxx.cache.windows.net" cachePort="22243" />
          </hosts>
          <securityProperties mode="Message" sslEnabled="true">
            <messageSecurity authorizationInfo="[xxx]"></messageSecurity>
          </securityProperties>
        </dataCacheClient>
      </dataCacheClients>
    

    DataCacheFactoryConfiguration config = new DataCacheFactoryConfiguration("default");
    DataCacheFactory cacheFactory = new DataCacheFactory(config);
    DataCache defaultCache = cacheFactory.GetDefaultCache();
    
    defaultCache.Put("testkey", "testobject");
    string strObject = (string)defaultCache.Get("testkey");
    defaultCache.Remove("testkey");
    

  • User profile image
    cbae

    , AceHack wrote

    *snip*

    1
    2
    3
    4
    5
    6
    7
    DataCacheFactoryConfiguration config = new DataCacheFactoryConfiguration("default");
    DataCacheFactory cacheFactory = new DataCacheFactory(config);
    DataCache defaultCache = cacheFactory.GetDefaultCache();
     
    defaultCache.Put("testkey", "testobject");
    string strObject = (string)defaultCache.Get("testkey");
    defaultCache.Remove("testkey");

    Maybe the compiler is smart enough to reduce the last three lines to:

    var strObject = "testobject";

     

  • User profile image
    AceHack

    Hey got it.  Thanks for all your help karstenj.

  • User profile image
    cbae

    Cheevo unlocked.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.