Beispiel #1
0
        public virtual void EvictCachedResult <TCacheEntryOptions>(ISyncCachedQuery <TCacheEntryOptions> query)
        {
            if (query == null)
            {
                throw new ArgumentNullException(nameof(query));
            }

            query.EvictCachedResult(GetSyncQueryCache <TCacheEntryOptions>());
        }
Beispiel #2
0
        /// <inheritdoc cref="ISyncCacheManager.EvictCachedResult{TCacheEntryOptions}"/>
        public virtual void EvictCachedResult <TCacheEntryOptions>(ISyncCachedQuery <TCacheEntryOptions> query)
        {
            if (query == null)
            {
                throw new ArgumentNullException(nameof(query));
            }

            Decorator.Decorate(GetOperationName(query, nameof(query.EvictCachedResult)), () => query.EvictCachedResult(GetSyncCacheStore <TCacheEntryOptions>()));
        }