Exemplo n.º 1
0
        public void AddQuery(OeCacheContext cacheContext, Object query, MethodCallExpression countExpression, OeEntryFactory entryFactory,
                             OePropertyAccessor[] skipTokenAccessors)
        {
            var queryCacheItem = new OeQueryCacheItem(query, countExpression, entryFactory, skipTokenAccessors);

            _cache.TryAdd(cacheContext, queryCacheItem);
        }
Exemplo n.º 2
0
 public OeQueryCacheItem GetQuery(OeCacheContext cacheContext)
 {
     _cache.TryGetValue(cacheContext, out OeQueryCacheItem cacheItem);
     return(cacheItem);
 }
Exemplo n.º 3
0
        public void AddQuery(OeCacheContext cacheContext, Object query, MethodCallExpression countExpression, OeEntryFactory entryFactory)
        {
            var queryCacheItem = new OeQueryCacheItem(query, countExpression, entryFactory);

            _cache.TryAdd(cacheContext, queryCacheItem);
        }