v1.6.2
Download the library here
- ADDED: QueryCache - IsCommandInfoOptionalForCacheKey (Require UseTagsAsCacheKey or UseFirstTagAsCacheKey enabled)
When this option is enabled, all information from command become optional (Connection && CommandText). They are only included if there are found. It allows caching any kind of list even when not coming from Entity Framework.
var listA = new List<CustomEntity>() { new CustomEntity() { X = 1 }, new CustomEntity() { X = 2 }, new CustomEntity() { X = 3 }};
var listB = new List<CustomEntity>() { new CustomEntity() { X = 4 }, new CustomEntity() { X = 5 }, new CustomEntity() { X = 6 } };
QueryCacheManager.IsCommandInfoOptionalForCacheKey = true;
QueryCacheManager.UseTagsAsCacheKey = true;
var t1 = listA.AsQueryable().FromCache("a");
var t2 = listB.AsQueryable().FromCache("a");