public DefaultFrameworkCaches(AbstractCacheProvider limitedLifetime, AbstractCacheProvider extendedLifetime) { Mandate.ParameterNotNull(limitedLifetime, "limitedLifetime"); Mandate.ParameterNotNull(extendedLifetime, "extendedLifetime"); _limitedLifetime = limitedLifetime; _extendedLifetime = extendedLifetime; }
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); }