成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

C#客戶端Redis服務器的分布式緩存

開發 后端 分布式 Redis
在這篇文章中,我想介紹我知道的一種最緊湊的安裝和配置Redis服務器的方式。另外,我想簡短地概述一下在.NET / C#客戶端下Redis hash(哈希類型)和list(鏈表)的使用。

介紹

在這篇文章中,我想介紹我知道的一種最緊湊的安裝和配置Redis服務器的方式。另外,我想簡短地概述一下在.NET / C#客戶端下Redis hash(哈希類型)和list(鏈表)的使用。

在這篇文章主要講到:

  • 安裝Redis服務器(附完整的應用程序文件設置

  • Redis服務器保護(配置身份驗證)

  • 配置服務器復制

  • 從C#應用程序訪問緩存

  • 使用Redis ASP.NET會話狀態

  • Redis 集合(Set)、列表(List)和事務處理用法示例

  • 說明附加的源(Redis Funq LoC MVC項目:舉例)

  • 緩存的優化思路

背景

Redis是最快也是功能最豐富的內存Key-Value數據存儲系統之一。

缺點

  • 沒有本地數據緩存(如在Azure緩存同步本地數據緩存)

  • 沒有完全集群化的支持(不過,可能今年年底會實現)

優點

  • 易于配置

  • 使用簡單

  • 高性能

  • 支持不同的數據類型(如hash(哈希類型)、list(鏈表)、set(集合)、sorted set(有序集))

  • ASP.NET會話集成

  • Web UI用于瀏覽緩存內容

下面我將簡單說明如何在服務器上安裝和配置Redis,并用C#使用它。

Redis的安裝

https://github.com/dmajkic/redis/downloads(win32 win64直接鏈接)下載二進制文件,解包檔案到應用程序目錄(如C:\Program Files\Redis)

下載從https://github.com/kcherenkov/redis-windows-service/downloads編譯的Redis服務,然后復制到程序文件夾(如C:\Program Files\Redis)。如果配置文件丟失,也可以下載復制到應用程序目錄。有效的Redis配置文件的范例在https://raw.github.com/antirez/redis/2.6/redis.conf

Redis應用程序的完整文件也可以從壓縮文件(x64)得到。

當你擁有了全套的應用程序文件(如下圖所示),

redis application folder conten

導航到應用程序目錄,然后運行以下命令:

sc create %name% binpath= "\"%binpath%\" %configpath%" start= "auto" DisplayName= "Redis"

其中:

  • %name%——服務實例的名稱,例如:redis-instance;

  • %binpath%——到項目exe文件的路徑,例如:C:\Program Files\Redis\RedisService_1.1.exe;

  • %configpath%——到Redis配置文件的路徑,例如:C:\Program Files\Redis\redis.conf;

舉例:

sc create Redis start= auto DisplayName= Redis binpath= "\"C:\Program Files\Redis\RedisService_1.1.exe\
" \"C:\Program Files\Redis\redis.conf\""

即應該是這樣的:

請確保有足夠的權限啟動該服務。安裝完畢后,請檢查該服務是否創建成功,當前是否正在運行:

或者,你可以使用安裝程序(我沒試過):https://github.com/rgl/redis/downloads

Redis服務器保護:密碼,IP過濾

保護Redis服務器的主要方式是使用Windows防火墻或活躍的網絡連接屬性設置IP過濾。此外,還可以使用Redis密碼設置額外保護。這需要用下面的方式更新Redis配置文件(redis.conf):

首先,找到這行:

# requirepass foobared

刪除開頭的#符號,用新密碼替換foobared:

requirepass foobared

然后,重新啟動Redis Windows服務!

當具體使用客戶端的時候,使用帶密碼的構造函數:

RedisClient client = new RedisClient(serverHost, port, redisPassword);

Redis服務器復制(主—從配置)

Redis支持主從同步,即,每次主服務器修改,從服務器得到通知,并自動同步。大多復制用于讀取(但不能寫)擴展和數據冗余和服務器故障轉移。設 置兩個Redis實例(在相同或不同服務器上的兩個服務),然后配置其中之一作為從站。為了讓Redis服務器實例是另一臺服務器的從屬,可以這樣更改配 置文件:

找到以下代碼:

# slaveof <masterip> <masterport>

替換為:

slaveof 192.168.1.1 6379

(可以自定義指定主服務器的真實IP和端口)。如果主服務器配置為需要密碼(驗證),可以如下所示改變redis.conf,找到這一行代碼:

# masterauth <master-password>

刪除開頭的#符號,用主服務器的密碼替換<master-password>,即:

masterauth mastpassword

現在這個Redis實例可以被用來作為主服務器的只讀同步副本。

用C#代碼使用Redis緩存

用C#代碼使用Redis運行Manage NuGet包插件,找到ServiceStack.Redis包,并進行安裝。

直接從實例化客戶端使用Set/Get方法示例:

 

  1. string host = "localhost"
  2. string elementKey = "testKeyRedis"
  3.  
  4. using (RedisClient redisClient = new RedisClient(host)) 
  5.       if (redisClient.Get<string>(elementKey) == null
  6.       { 
  7.            // adding delay to see the difference 
  8.            Thread.Sleep(5000); 
  9.            // save value in cache 
  10.            redisClient.Set(elementKey, "some cached value"); 
  11.       } 
  12.       // get value from the cache by key 
  13.       message = "Item value is: " + redisClient.Get<string>("some cached value"); 

類型化實體集更有意思和更實用,這是因為它們操作的是確切類型的對象。在下面的代碼示例中,有兩個類分別定義為Phone和Person——phone的主人。每個phone實例引用它的主人。下面的代碼演示我們如何通過標準添加、刪除和發現緩存項:

 

  1. public class Phone 
  2.    public int Id { get; set; } 
  3.    public string Model { get; set; } 
  4.    public string Manufacturer { get; set; } 
  5.    public Person Owner { get; set; } 
  6.  
  7. public class Person 
  8.     public int Id { get; set; } 
  9.     public string Name { get; set; } 
  10.     public string Surname { get; set; } 
  11.     public int Age { get; set; } 
  12.     public string Profession { get; set; } 
  13.  
  14. using (RedisClient redisClient = new RedisClient(host)) 
  15.      IRedisTypedClient<phone> phones = redisClient.As<phone>(); 
  16.      Phone phoneFive = phones.GetValue("5"); 
  17.      if (phoneFive == null
  18.      { 
  19.           // make a small delay 
  20.           Thread.Sleep(5000); 
  21.           // creating a new Phone entry 
  22.           phoneFive = new Phone 
  23.           { 
  24.                Id = 5
  25.                Manufacturer = "Motorolla"
  26.                Model = "xxxxx"
  27.                Owner = new Person 
  28.                { 
  29.                     Id = 1
  30.                     Age = 90
  31.                     Name = "OldOne"
  32.                     Profession = "sportsmen"
  33.                     Surname = "OldManSurname" 
  34.                } 
  35.           }; 
  36.           // adding Entry to the typed entity set 
  37.           phones.SetEntry(phoneFive.Id.ToString(), phoneFive); 
  38.      } 
  39.      message = "Phone model is " + phoneFive.Manufacturer; 
  40.      message += "Phone Owner Name is: " + phoneFive.Owner.Name; 

在上面的例子中,我們實例化了輸入端IRedisTypedClient,它與緩存對象的特定類型——Phone類型一起工作。

Redis ASP.NET會話狀態

要用Redis提供商配置ASP.NET會話狀態,添加新文件到你的Web項目,命名為RedisSessionStateProvider.cs,可以從https://github.com/chadman/redis-service-provider/raw/master/RedisProvider/SessionProvider/RedisSessionProvider.cs復制代碼,然后添加或更改配置文件中的以下部分(sessionState標簽已經內置于system.web標簽),或者你也可以下載附加來源和復制代碼。

  1. <sessionstate timeout="1" mode="Custom" 
  2. customprovider="RedisSessionStateProvider" cookieless="false"
  3.       <providers> 
  4.         <add name="RedisSessionStateProvider" writeexceptionstoeventlog="false" 
  5.         type="RedisProvider.SessionProvider.CustomServiceProvider" 
  6.         server="localhost" port="6379" password="pasword"
  7.       </add> </providers> 
  8. </sessionstate> 

注意,此密碼是可以選擇的,看服務器是否需要認證。它必須被真實的值替換或刪除,如果Redis服務器不需要身份驗證,那么服務器屬性和端口得由具體的數值代替(默認端口為6379)。然后在項目中,你才可以使用會話狀態:

 

  1. // in the Global.asax 
  2. public class MvcApplication1 : System.Web.HttpApplication 
  3.     protected void Application_Start() 
  4.     { 
  5.         //.... 
  6.     } 
  7.  
  8.     protected void Session_Start() 
  9.     { 
  10.         Session["testRedisSession"] = "Message from the redis ression"
  11.     } 
  12.  
  13. 在Home controller(主控制器): 
  14.  
  15. public class HomeController : Controller 
  16.     public ActionResult Index() 
  17.     { 
  18.        //... 
  19.        ViewBag.Message = Session["testRedisSession"]; 
  20.        return View(); 
  21.     } 
  22. //... 

結果:

ASP.NET輸出緩存提供者,并且Redis可以用類似的方式進行配置。

Redis Set(集合)和List(列表)

主要要注意的是,Redis列表實現IList<T>,而Redis集合實現ICollection<T>。下面來說說如何使用它們。

當需要區分相同類型的不同分類對象時,使用列表。例如,我們有“mostSelling(熱銷手機)”和“oldCollection(回收手機)”兩個列表:

 

  1. string host = "localhost"
  2. using (var redisClient = new RedisClient(host)) 
  3.     //Create a 'strongly-typed' API that makes all Redis Value operations to apply against Phones 
  4.     IRedisTypedClient<phone> redis = redisClient.As<phone>(); 
  5.  
  6.     IRedisList<phone> mostSelling = redis.Lists["urn:phones:mostselling"]; 
  7.     IRedisList<phone> oldCollection = redis.Lists["urn:phones:oldcollection"]; 
  8.  
  9.     Person phonesOwner = new Person 
  10.         { 
  11.             Id = 7
  12.             Age = 90
  13.             Name = "OldOne"
  14.             Profession = "sportsmen"
  15.             Surname = "OldManSurname" 
  16.         }; 
  17.  
  18.     // adding new items to the list 
  19.     mostSelling.Add(new Phone 
  20.             { 
  21.                 Id = 5
  22.                 Manufacturer = "Sony"
  23.                 Model = "768564564566"
  24.                 Owner = phonesOwner 
  25.             }); 
  26.  
  27.     oldCollection.Add(new Phone 
  28.             { 
  29.                 Id = 8
  30.                 Manufacturer = "Motorolla"
  31.                 Model = "324557546754"
  32.                 Owner = phonesOwner 
  33.             }); 
  34.  
  35.     var upgradedPhone  = new Phone 
  36.     { 
  37.         Id = 3
  38.         Manufacturer = "LG"
  39.         Model = "634563456"
  40.         Owner = phonesOwner 
  41.     }; 
  42.  
  43.     mostSelling.Add(upgradedPhone); 
  44.  
  45.     // remove item from the list 
  46.     oldCollection.Remove(upgradedPhone); 
  47.  
  48.     // find objects in the cache 
  49.     IEnumerable<phone> LGPhones = mostSelling.Where(ph => ph.Manufacturer == "LG"); 
  50.  
  51.     // find specific 
  52.     Phone singleElement = mostSelling.FirstOrDefault(ph => ph.Id == 8); 
  53.  
  54.     //reset sequence and delete all lists 
  55.     redis.SetSequence(0); 
  56.     redisClient.Remove("urn:phones:mostselling"); 
  57.     redisClient.Remove("urn:phones:oldcollection"); 

當需要存儲相關的數據集和收集統計信息,例如answer -> queustion給答案或問題投票時,Redis集合就非常好使。假設我們有很多的問題(queustion)和答案(answer ),需要將它們存儲在緩存中。使用Redis,我們可以這么做:

 

  1. /// <summary> 
  2. /// Gets or sets the Redis Manager. The built-in IoC used with ServiceStack autowires this property. 
  3. /// </summary> 
  4. IRedisClientsManager RedisManager { get; set; } 
  5. /// <summary> 
  6. /// Delete question by performing compensating actions to 
  7. /// StoreQuestion() to keep the datastore in a consistent state 
  8. /// </summary> 
  9. /// <param name="questionId"> 
  10. public void DeleteQuestion(long questionId) 
  11.     using (var redis = RedisManager.GetClient()) 
  12.     { 
  13.         var redisQuestions = redis.As<question>(); 
  14.  
  15.         var question = redisQuestions.GetById(questionId); 
  16.         if (question == nullreturn
  17.  
  18.         //decrement score in tags list 
  19.         question.Tags.ForEach(tag => redis.IncrementItemInSortedSet("urn:tags", tag, -1)); 
  20.  
  21.         //remove all related answers 
  22.         redisQuestions.DeleteRelatedEntities<answer>(questionId); 
  23.  
  24.         //remove this question from user index 
  25.         redis.RemoveItemFromSet("urn:user>q:" + question.UserId, questionId.ToString()); 
  26.  
  27.         //remove tag => questions index for each tag 
  28.         question.Tags.ForEach("urn:tags>q:" + tag.ToLower(), questionId.ToString())); 
  29.  
  30.         redisQuestions.DeleteById(questionId); 
  31.     } 
  32.  
  33. public void StoreQuestion(Question question) 
  34.     using (var redis = RedisManager.GetClient()) 
  35.     { 
  36.         var redisQuestions = redis.As<question>(); 
  37.  
  38.         if (question.Tags == null) question.Tags = new List<string>(); 
  39.         if (question.Id == default(long)) 
  40.         { 
  41.             question.Id = redisQuestions.GetNextSequence(); 
  42.             question.CreatedDate = DateTime.UtcNow; 
  43.  
  44.             //Increment the popularity for each new question tag 
  45.             question.Tags.ForEach(tag => redis.IncrementItemInSortedSet("urn:tags", tag, 1)); 
  46.         } 
  47.  
  48.         redisQuestions.Store(question); 
  49.         redisQuestions.AddToRecentsList(question); 
  50.         redis.AddItemToSet("urn:user>q:" + question.UserId, question.Id.ToString()); 
  51.  
  52.         //Usage of tags - Populate tag => questions index for each tag 
  53.         question.Tags.ForEach(tag => redis.AddItemToSet 
  54.         ("urn:tags>q:" + tag.ToLower(), question.Id.ToString())); 
  55.     } 
  56.  
  57. /// <summary> 
  58. /// Delete Answer by performing compensating actions to 
  59. /// StoreAnswer() to keep the datastore in a consistent state 
  60. /// </summary> 
  61. /// <param name="questionId"> 
  62. /// <param name="answerId"> 
  63. public void DeleteAnswer(long questionId, long answerId) 
  64.     using (var redis = RedisManager.GetClient()) 
  65.     { 
  66.         var answer = redis.As<question>().GetRelatedEntities<answer> 
  67.         (questionId).FirstOrDefault(x => x.Id == answerId); 
  68.         if (answer == nullreturn
  69.  
  70.         redis.As<question>().DeleteRelatedEntity<answer>(questionId, answerId); 
  71.  
  72.         //remove user => answer index 
  73.         redis.RemoveItemFromSet("urn:user>a:" + answer.UserId, answerId.ToString()); 
  74.     } 
  75.  
  76. public void StoreAnswer(Answer answer) 
  77.     using (var redis = RedisManager.GetClient()) 
  78.     { 
  79.         if (answer.Id == default(long)) 
  80.         { 
  81.             answer.Id = redis.As<answer>().GetNextSequence(); 
  82.             answer.CreatedDate = DateTime.UtcNow; 
  83.         } 
  84.  
  85.         //Store as a 'Related Answer' to the parent Question 
  86.         redis.As<question>().StoreRelatedEntities(answer.QuestionId, answer); 
  87.         //Populate user => answer index 
  88.         redis.AddItemToSet("urn:user>a:" + answer.UserId, answer.Id.ToString()); 
  89.     } 
  90.  
  91. public List<answer> GetAnswersForQuestion(long questionId) 
  92.     using (var redis = RedisManager.GetClient()) 
  93.     { 
  94.         return redis.As<question>().GetRelatedEntities<answer>(questionId); 
  95.     } 
  96.  
  97. public void VoteQuestionUp(long userId, long questionId) 
  98.     //Populate Question => User and User => Question set indexes in a single transaction 
  99.     RedisManager.ExecTrans(trans => 
  100.     { 
  101.         //Register upvote against question and remove any downvotes if any 
  102.         trans.QueueCommand(redis => 
  103.         redis.AddItemToSet("urn:q>user+:" + questionId, userId.ToString())); 
  104.         trans.QueueCommand(redis => 
  105.         redis.RemoveItemFromSet("urn:q>user-:" + questionId, userId.ToString())); 
  106.  
  107.         //Register upvote against user and remove any downvotes if any 
  108.         trans.QueueCommand(redis => 
  109.         redis.AddItemToSet("urn:user>q+:" + userId, questionId.ToString())); 
  110.         trans.QueueCommand(redis => 
  111.         redis.RemoveItemFromSet("urn:user>q-:" + userId, questionId.ToString())); 
  112.     }); 
  113.  
  114. public void VoteQuestionDown(long userId, long questionId) 
  115.     //Populate Question => User and User => Question set indexes in a single transaction 
  116.     RedisManager.ExecTrans(trans => 
  117.     { 
  118.         //Register downvote against question and remove any upvotes if any 
  119.         trans.QueueCommand(redis => 
  120.         redis.AddItemToSet("urn:q>user-:" + questionId, userId.ToString())); 
  121.         trans.QueueCommand(redis => 
  122.         redis.RemoveItemFromSet("urn:q>user+:" + questionId, userId.ToString())); 
  123.  
  124.         //Register downvote against user and remove any upvotes if any 
  125.         trans.QueueCommand(redis => 
  126.         redis.AddItemToSet"urn:user>q-:" + userId, questionId.ToString())); 
  127.         trans.QueueCommand(redis => 
  128.         redis.RemoveItemFromSet("urn:user>q+:" + userId, questionId.ToString())); 
  129.     }); 
  130.  
  131. public void VoteAnswerUp(long userId, long answerId) 
  132.     //Populate Question => User and User => Question set indexes in a single transaction 
  133.     RedisManager.ExecTrans(trans => 
  134.     { 
  135.         //Register upvote against answer and remove any downvotes if any 
  136.         trans.QueueCommand(redis => 
  137.         redis.AddItemToSet("urn:a>user+:" + answerId, userId.ToString())); 
  138.         trans.QueueCommand(redis => 
  139.         redis.RemoveItemFromSet("urn:a>user-:" + answerId, userId.ToString())); 
  140.  
  141.         //Register upvote against user and remove any downvotes if any 
  142.         trans.QueueCommand(redis => 
  143.         redis.AddItemToSet("urn:user>a+:" + userId, answerId.ToString())); 
  144.         trans.QueueCommand(redis => 
  145.         redis.RemoveItemFromSet("urn:user>a-:" + userId, answerId.ToString())); 
  146.     }); 
  147.  
  148. public void VoteAnswerDown(long userId, long answerId) 
  149.     //Populate Question => User and User => Question set indexes in a single transaction 
  150.     RedisManager.ExecTrans(trans => 
  151.     { 
  152.         //Register downvote against answer and remove any upvotes if any 
  153.         trans.QueueCommand(redis => 
  154.         redis.AddItemToSet("urn:a>user-:" + answerId, userId.ToString())); 
  155.         trans.QueueCommand(redis => 
  156.         redis.RemoveItemFromSet("urn:a>user+:" + answerId, userId.ToString())); 
  157.  
  158.         //Register downvote against user and remove any upvotes if any 
  159.         trans.QueueCommand(redis => 
  160.         redis.AddItemToSet("urn:user>a-:" + userId, answerId.ToString())); 
  161.         trans.QueueCommand(redis => 
  162.         redis.RemoveItemFromSet("urn:user>a+:" + userId, answerId.ToString())); 
  163.     }); 
  164.  
  165. public QuestionResult GetQuestion(long questionId) 
  166.     var question = RedisManager.ExecAs<question> 
  167.     (redisQuestions => redisQuestions.GetById(questionId)); 
  168.     if (question == nullreturn null
  169.  
  170.     var result = ToQuestionResults(new[] { question })[0]; 
  171.     var answers = GetAnswersForQuestion(questionId); 
  172.     var uniqueUserIds = answers.ConvertAll(x => x.UserId).ToHashSet(); 
  173.     var usersMap = GetUsersByIds(uniqueUserIds).ToDictionary(x => x.Id); 
  174.  
  175.     result.Answers = answers.ConvertAll(answer => 
  176.         new AnswerResult { Answer = answer, User = usersMap[answer.UserId] }); 
  177.  
  178.     return result; 
  179.  
  180. public List<user> GetUsersByIds(IEnumerable<long> userIds) 
  181.     return RedisManager.ExecAs<user>(redisUsers => redisUsers.GetByIds(userIds)).ToList(); 
  182.  
  183. public QuestionStat GetQuestionStats(long questionId) 
  184.     using (var redis = RedisManager.GetReadOnlyClient()) 
  185.     { 
  186.         var result = new QuestionStat 
  187.         { 
  188.             VotesUpCount = redis.GetSetCount("urn:q>user+:" +questionId), 
  189.             VotesDownCount = redis.GetSetCount("urn:q>user-:" + questionId) 
  190.         }; 
  191.         result.VotesTotal = result.VotesUpCount - result.VotesDownCount; 
  192.         return result; 
  193.     } 
  194.  
  195. public List<tag> GetTagsByPopularity(int skip, int take) 
  196.     using (var redis = RedisManager.GetReadOnlyClient()) 
  197.     { 
  198.         var tagEntries = redis.GetRangeWithScoresFromSortedSetDesc("urn:tags", skip, take); 
  199.         var tags = tagEntries.ConvertAll(kvp => new Tag { Name = kvp.Key, Score = (int)kvp.Value }); 
  200.         return tags; 
  201.     } 
  202.  
  203. public SiteStats GetSiteStats() 
  204.     using (var redis = RedisManager.GetClient()) 
  205.     { 
  206.         return new SiteStats 
  207.         { 
  208.             QuestionsCount = redis.As<question>().TypeIdsSet.Count, 
  209.             AnswersCount = redis.As<answer>().TypeIdsSet.Count, 
  210.             TopTags = GetTagsByPopularity(010
  211.         }; 
  212.     } 

附加資源說明

項目中引用的一些包在packages.config文件中配置。

Funq IoC的相關配置,以及注冊類型和當前控制器目錄,在Global.asax文件中配置。

基于IoC的緩存使用以及Global.asax可以打開以下URL:http://localhost:37447/Question/GetQuestions?tag=test 查看。

你可以將tag字段設置成test3,test1,test2等。

Redis緩存配置——在web config文件(<system.web><sessionState>節點)以及RedisSessionStateProvider.cs文件中。

在MVC項目中有很多待辦事項,因此,如果你想改進/繼續,請更新,并上傳。

如果有人能提供使用Redis(以及Funq IOC)緩存的MVC應用程序示例,本人將不勝感激。Funq IOC已經配置,使用示例已經在Question controller中。

注:部分取樣于“ServiceStack.Examples-master”解決方案。

結論。優化應用程序緩存以及快速本地緩存

由于Redis并不在本地存儲(也不在本地復制)數據,那么通過在本地緩存區存儲一些輕量級或用戶依賴的對象(跳過序列化字符串和客戶端—服務端數據轉換)來優化性能是有意義的。例如,在Web應用中,對于輕量級的對象使用’System.Runtime.Caching.ObjectCache‘ 會更好——用戶依賴,并且應用程序時常要用。否則,當經常性地需要使用該對象時,就必須在分布式Redis緩存中存儲大量容積的內容。用戶依賴的對象舉例——個人資料信息,個性化信息 。常用對象——本地化數據,不同用戶之間的共享信息,等等。

下載源代碼(Redis Funq LoC MVC 4版本)

鏈接

如何運行Redis服務:

https://github.com/kcherenkov/redis-windows-service

文檔:

http://redis.io/documentation

.NET / C#示例:

https://github.com/ServiceStack/ServiceStack.Examples

關于如何用C#在Windows上使用Redis的好建議:

http://maxivak.com/getting-started-with-redis-and-asp-net-mvc-under-windows/:

http://www.piotrwalat.net/using-redis-with-asp-net-web-api/

關于Redis:

https://github.com/ServiceStack/ServiceStack.Redis

Azure緩存

http://kotugoroshko.blogspot.ae/2013/07/windows-azure-caching-integration.html

許可證

這篇文章,以及任何相關的源代碼和文件,依據The Code Project Open License (CPOL)。

譯文鏈接:http://www.codeceo.com/article/distributed-caching-redis-server.html
英文原文:Distributed Caching using Redis Server with .NET/C# Client

 

責任編輯:王雪燕 來源: 碼農網
相關推薦

2011-11-30 14:21:19

Java分布式緩存

2015-09-21 09:20:11

C#Couchbase使用

2024-12-02 09:19:44

2012-02-28 10:30:56

C#.NET

2020-03-12 19:00:48

Ceph分布式存儲

2009-08-18 12:51:19

服務器+客戶端

2009-08-21 15:59:22

服務端與客戶端通信

2009-08-21 16:14:52

服務端與客戶端通信

2017-03-13 14:02:10

分布式聊天服務器

2011-06-09 10:51:26

Qt 服務器 客戶端

2009-08-21 15:36:41

服務端與客戶端

2009-08-21 15:54:40

服務端與客戶端

2019-02-18 11:16:12

Redis分布式緩存

2018-11-07 09:23:21

服務器分布式機器學習

2009-08-06 17:12:13

C# WebServi

2014-01-17 15:23:55

Nagios

2010-06-09 14:39:58

2019-03-27 08:43:17

Nginx負載均衡服務器

2018-07-17 09:59:10

PythonUDP服務器

2018-12-18 10:47:37

點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 久久99精品久久久久久 | 超碰成人免费观看 | 国产精品久久久久久久久久妇女 | 日韩精品一区二区三区中文字幕 | 国产成人精品一区二 | 狠狠干影院 | 久久久入口 | 国产欧美精品一区二区色综合朱莉 | 亚洲午夜精品 | 性网站免费 | 亚洲精品黄| 一区二区三区在线观看免费视频 | 国产欧美精品一区二区三区 | 中文字幕亚洲一区 | 久久区二区| 91精品免费| 久久精品久久久久久 | 亚洲午夜电影 | 国产免费一区二区 | 亚洲一区视频在线播放 | 国户精品久久久久久久久久久不卡 | 青青草av在线播放 | 美女爽到呻吟久久久久 | 亚洲最大福利网 | 色综合色综合 | 中文字幕在线观看精品 | 九九久久免费视频 | 性国产丰满麻豆videosex | 国产精品国产精品国产专区不片 | 国产极品91 | 午夜在线视频 | 亚洲一区国产 | 99国产精品久久久 | 日韩视频在线一区 | 羞羞色视频 | 日本不卡一区二区三区 | 国产精品一区二区三区在线 | 久久久久国| 在线播放国产视频 | 97国产精品视频人人做人人爱 | 伊人91在线|