public static bool Contains(PersistableBusinessObject value, bool fullyPopulated)
        {
            bool contains = false;

            if (cache != null)
            {
                contains = cache.Contains(string.Concat(value.Id.ToString(), "|", value.GetType().ToString(), "|", fullyPopulated.ToString()));
            }

            if (!contains && !fullyPopulated)
            {
                //we were after a non fully populated object, and there wasn't one lets see if there is a fully populated object
                if (cache != null)
                {
                    contains = cache.Contains(string.Concat(value.Id.ToString(), "|", value.GetType().ToString(), "|", true.ToString()));
                }
            }

            return(contains);
        }
Beispiel #2
0
 public static bool Contains(string key)
 {
     return(_cache.Contains(key));
 }