Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have new in Redis cache implementation and got in simple example with getstring from Redis Cache. But Same time I didnt get any idea about Set and get list values through Redis.

I have Using Provider and Repository. Please help me how to further proceed...


What I have tried:

public List<Article> 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> _article = _cacheProxy.Get<List<Article>>(cacheKey);
            if (_article != null)
            {
                _article = _articleRepositary.GetArticleListBySectionName(sectionName, RegionId, Count, CacheTime);
                _cacheProxy.Store<List<Article>>(_article, cacheKey, expiryInMinutes);
            }
            return _article;
        }
    }




<pre>Here _cacheProxy.Get and _cacheProxy.Store getting null values..While executing this, I ll getting error page
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900