Ejemplo n.º 1
0
 public function getFalsePropNumMemcached($intCityId)
 {
     apf_require_class('Util_Memcache');
     $strSQL = "select sum(falsenum) from false_propertys_stat where cityid=?";
     $intFalsePropertyCnt = Util_Memcache::memcached('DAO_Property_etc', 'getFalsePropertyCnt', array($strSQL, array($intCityId)), 43200);
     return $intFalsePropertyCnt;
 }
Ejemplo n.º 2
0
 public static function getDebugData()
 {
     if (self::isDebug()) {
         $aDebug[] = '共次总耗时:' . Yaf_G::getRunTime() . '毫秒';
         if (isset(self::$_aInstance['orm'])) {
             $aDebug[] = Db_Orm::getDebugStat();
         }
         if (isset(self::$_aInstance['cache'])) {
             $aDebug[] = Util_Memcache::getDebugStat();
         }
         if (isset(self::$_aInstance['redis'])) {
             $aDebug[] = Util_Redis::getDebugStat();
         }
         if (class_exists('Sdk_Base')) {
             $sInfo = Sdk_Base::getDebugStat();
             if (!empty($sInfo)) {
                 $aDebug[] = $sInfo;
             }
         }
         $sDebug = join(' ', $aDebug);
         $aDebug = self::getDebug()->getAll();
         array_unshift($aDebug, $sDebug);
         return $aDebug;
     }
     return null;
 }