• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • TokyoTyrant::vanish()

    (PECL tokyo_tyrant >= 0.1.0)

    Empties the database

    说明

    publicTokyoTyrant::vanish(void): mixed

    Empties a remote database

    参数

    此函数没有参数。

    返回值

    This method returns the current object and throws TokyoTyrantException on failure.

    范例

    Example #1 TokyoTyrant::vanish() example

    <?php
    $tt = new TokyoTyrant("localhost");
    $tt->vanish();
    ?>
    

    参见

    • TokyoTyrant::out() Removes records