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