Esempio n. 1
0
        public int FindCount(Type t, String condition)
        {
            if (CacheTime.isCountUpdate(t, condition))
            {
                return(-1);
            }
            String key = CacheKey.getCountKey(t, condition);
            Object obj = getFromApplication(key);

            return(obj == null ? -1 : (int)obj);
        }
Esempio n. 2
0
        public int FindCount(Type t)
        {
            if (CacheTime.isCountUpdate(t))
            {
                return(-1);
            }
            String key = CacheKey.getCountKey(t);
            Object obj = getFromContext(key);

            return(obj == null ? -1 : (int)obj);
        }