self::$total_user, 'video' => self::$total_video, 'tag' => self::$total_tag, 'cache_time' => self::$cache_save_time, ); } public static function increase($data_type) { $total = 0; switch($data_type) { case 'user': self::$total_user ++; $total = self::$total_user; break; case 'video': self::$total_video ++; $total = self::$total_video; break; case 'tag': self::$total_tag ++; $total = self::$total_tag; break; } return $total; } public static function decrease($data_type) { $total = 0; switch($data_type) { case 'video': self::$total_video --; $total = self::$total_video; break; case 'tag': self::$total_tag --; $total = self::$total_tag; break; } return $total; } }