예제 #1
0
 // -------------------------------------------------------------------
 static void appendTimeUsed(long timeCount) {
   try {
     long timeUsed = Tool.toLong(MCache.getValue(CacheKeys.BACKEND_MS_USED));
     MCache.saveValue(CacheKeys.BACKEND_MS_USED, timeUsed + timeCount);
   } catch (Throwable ex) {
   }
 }
예제 #2
0
 // -------------------------------------------------------------------
 static boolean isOverLimit() {
   boolean isOver = true;
   try {
     isOver = Tool.toLong(MCache.getValue(CacheKeys.BACKEND_MS_USED)) >= Backend.BACKEND_DAY_LIMIT;
   } catch (Throwable ex) {
   }
   return isOver;
 }
예제 #3
0
 // -------------------------------------------------------------------
 static boolean resetTimeUsed() {
   return MCache.saveValue(CacheKeys.BACKEND_MS_USED, 0);
 }