Coffeehouse Thread

25 posts

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.

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.