Ejemplo 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);
        }
Ejemplo 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);
        }