示例#1
0
 /// <summary>
 /// Tells if the cache is a clustered cache or a local one
 /// </summary>
 /// <param name="cache"></param>
 /// <returns></returns>
 public static bool IsClusteredCache(CacheBase cache)
 {
     if (cache == null)
     {
         return(false);
     }
     else
     {
         return(cache.GetType().IsSubclassOf(typeof(ClusterCacheBase)));
     }
 }