예제 #1
0
        public static IEnumerable <CacheResult <T> > GetAllEntries <T>([NotNull] this ICacheSection <T> cacheSection)
        {
            cacheSection.AssertArgumentNotNull(nameof(cacheSection));

            var values = cacheSection
                         .Keys
                         .Select(key => cacheSection.GetCacheEntry(key))
                         .Where(cacheResult => !cacheResult.IsEmpty());

            return(values);
        }