Exemplo n.º 1
0
        private List <Friend> GetCollectionInCache()
        {
            if (InMemoryCacheService.Exists(CacheKey) == false)
            {
                InMemoryCacheService.Insert(CacheKey, new List <Friend>());
            }

            return((List <Friend>)InMemoryCacheService.Get(CacheKey));
        }