![]() ![]() If not, then we are going we are going to pull data from the database and save it to Redis cache if the key exists then we are going to pull from Redis cache. In this part, we are going to - first, check if the key exists. Now, let’s add JsonResult GetCountryList to get the country list to bind the data to the drop-down list. using ( var client = new RedisClient(_redisEndpoint)).redisClient.As().SetValue(key, value, timeout).public bool StoreList(string key, T value, TimeSpan timeout). ![]() public string GetStrings(string key, string value).public void SetStrings(string key, string value).using ( var redisClient = new RedisClient(_redisEndpoint))._redisEndpoint = new RedisEndpoint(host, port).var port = Convert.ToInt32(ConfigurationManager.AppSettings). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |