public static void TryFlushCachedCollection(Mutator mutator = null) { if (!(Configuration?.UseCaching == true && Current.Cache.OperationalStatus == EOperationalStatus.Operational)) { return; } Current.Cache.RemoveAll(); }
internal static void TryFlushCachedModel(T model, Mutator mutator = null) { if (!(Configuration?.UseCaching == true && Current.Cache.OperationalStatus == EOperationalStatus.Operational)) { return; } var key = mutator?.KeyPrefix + model.GetDataKey(); CacheFactory.FlushModel <T>(key); }