[AzureCamp 24 Juin 2014] Cache Distribué par Thomas Conté

2,166 views

Published on

[AzureCamp 24 Juin 2014] Cache Distribué par Thomas Conté

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,166
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Détails: http://msdn.microsoft.com/en-us/library/hh914167.aspx
  • Détails: https://github.com/Azure/azure-content/blob/master/articles/cache-dotnet-how-to-use-service.md
  • Détails: http://msdn.microsoft.com/en-us/library/azure/dn386094.aspx
  • [AzureCamp 24 Juin 2014] Cache Distribué par Thomas Conté

    1. 1. http://azure.microsoft.com/en-us/pricing/details/cache/
    2. 2. <InputEndpoint name="memcache_default" protocol="tcp" port="11211" />
    3. 3. // Cache client configured by settings in application config file. DataCache defaultCache = new DataCache("default", "default"); // Put and retrieve a test object from the default cache. defaultCache.Put("testkey", "testobject"); string strObject = (string)defaultCache.Get("testkey");
    4. 4. strings hashes lists sets sorted sets
    5. 5. http://redislabs.com/blog/secure-redis-ssl-added-to- redsmin-and-clients
    6. 6. ConnectionMultiplexer connection = ConnectionMultiplexer.Connect("tomtest.redis.cache. windows.net,ssl=true,password=toto"); IDatabase cache = connection.GetDatabase(); // Simple put of integral data types into the cache cache.StringSet("key1", "value"); cache.StringSet("key2", 25); // Simple get of data types from the cache string key1 = cache.StringGet("key1"); int key2 = (int)cache.StringGet("key2");

    ×