示例#1
0
 public static bool CanCache(Type type)
 => CacheObjectsAttribute.IsEnabled(type) ?? Database.Configuration.Cache.Enabled;
示例#2
0
 public static bool CanCache(Type type)
 {
     return(CacheObjectsAttribute.IsEnabled(type) ?? _IsCachingEnabled);
 }
示例#3
0
 public static bool CanCache(Type type) => CacheObjectsAttribute.IsEnabled(type) ?? IsCachingEnabled;
示例#4
0
文件: Cache.cs 项目: tohfe/Olive
 public bool IsCacheable(Type type) => CacheObjectsAttribute.IsEnabled(type) ?? ProviderConfig.Configuration.Cache.Enabled;