Exemple #1
0
 public static bool CanCache(Type type)
 => CacheObjectsAttribute.IsEnabled(type) ?? Database.Configuration.Cache.Enabled;
 public static bool CanCache(Type type)
 {
     return(CacheObjectsAttribute.IsEnabled(type) ?? _IsCachingEnabled);
 }
Exemple #3
0
 public static bool CanCache(Type type) => CacheObjectsAttribute.IsEnabled(type) ?? IsCachingEnabled;
Exemple #4
0
 public bool IsCacheable(Type type) => CacheObjectsAttribute.IsEnabled(type) ?? ProviderConfig.Configuration.Cache.Enabled;