Exemple #1
0
Fichier : Info.cs Projet : lr030/ML
 public static void TryFlushCachedCollection(Mutator mutator = null)
 {
     if (!(Configuration?.UseCaching == true && Current.Cache.OperationalStatus == EOperationalStatus.Operational))
     {
         return;
     }
     Current.Cache.RemoveAll();
 }
Exemple #2
0
Fichier : Info.cs Projet : lr030/ML
        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);
        }