public function setTabIdToCache($tab_id)
 {
     $this->connectMysql();
     $sql = 'UPDATE state  SET tab_id_' . $this->_db . '=' . $tab_id;
     self::$mysql->query($sql);
     echo 'insert ' . self::$mysql->affected_rows . ' row', PHP_EOL;
     $redis = Singleton::redis(1);
     $redis->set(self::CACHE_KEY . $this->_db, $tab_id);
 }