am new in Redis cache implementation and got in simple example with getstring from Redis Cache which is working fine. But the Same time I didn't get any idea about Set and get list values through Redis.
I have Using Provider and Repository. Please help me how to further proceed...
- public List
GetArticleListBySectionName( string sectionName, int RegionId, int Count, int CacheTime, string cacheKey, bool cacheEnable = false, string expiryInMinutes = "NoExpiry") - {
- {
- cacheKey = GetCacheKey(cacheKey, Convert.ToString(sectionName));
- List
_article = _cacheProxy.Get - >(cacheKey);
- if (_article != null)
- {
- _article = _articleRepositary.GetArticleListBySectionName(sectionName, RegionId, Count, CacheTime);
- _cacheProxy.Store
- >(_article, cacheKey, expiryInMinutes);
- }
- return _article;
- }
- }
Here _cacheProxy.Get and _cacheProxy.Store getting null values..While executing this, I ll getting error page
Sagar Pandurang KapPosted Feb 5, 2018, 10:27 PM