public DefaultFrameworkCaches(AbstractCacheProvider limitedLifetime, AbstractCacheProvider extendedLifetime)
        {
            Mandate.ParameterNotNull(limitedLifetime, "limitedLifetime");
            Mandate.ParameterNotNull(extendedLifetime, "extendedLifetime");

            _limitedLifetime = limitedLifetime;
            _extendedLifetime = extendedLifetime;
        }
        public DefaultFrameworkCaches(AbstractCacheProvider limitedLifetime, AbstractCacheProvider extendedLifetime)
        {
            Mandate.ParameterNotNull(limitedLifetime, "limitedLifetime");
            Mandate.ParameterNotNull(extendedLifetime, "extendedLifetime");

            _limitedLifetime  = limitedLifetime;
            _extendedLifetime = extendedLifetime;
        }
Exemple #3
0
 public RepositoryContext(AbstractCacheProvider generationScopedCache, AbstractCacheProvider batchScopedCache, IFrameworkContext frameworkContext)
 {
     GenerationScopedCache = generationScopedCache;
     BatchScopedCache      = batchScopedCache;
     FrameworkContext      = frameworkContext;
 }
 public RepositoryContext(AbstractCacheProvider generationScopedCache, AbstractCacheProvider batchScopedCache, IFrameworkContext frameworkContext)
 {
     GenerationScopedCache = generationScopedCache;
     BatchScopedCache = batchScopedCache;
     FrameworkContext = frameworkContext;
 }
 private static void RemoveFromProvider(TypedEntity entity, AbstractCacheProvider cache, string niceUrl)
 {
     cache.RemoveWhereKeyMatches<UrlCacheKey>(x => x.EntityId == entity.Id);
     cache.RemoveWhereKeyContainsString(niceUrl);
 }
 private static void RemoveFromProvider(TypedEntity entity, AbstractCacheProvider cache, string niceUrl)
 {
     cache.RemoveWhereKeyMatches <UrlCacheKey>(x => x.EntityId == entity.Id);
     cache.RemoveWhereKeyContainsString(niceUrl);
 }