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

    (PECL tokyo_tyrant >= 0.1.0)

    Removes records

    说明

    publicTokyoTyrant::out(mixed $keys): TokyoTyrant

    Removes a record or multiple records. This method accepts a string for a single key or an array of keys for multiple records.

    参数

    $keys

    A string key or an array of string keys

    返回值

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

    范例

    Example #1 TokyoTyrant::out() example

    <?php
    /* Connect to a database on default port */
    $tt = new TokyoTyrant("localhost");
    $tt->put("test1", "value1");
    $tt->put("test2", "value2");
    $tt->out(array("test1", "test2"));
    ?>
    

    参见

    • TokyoTyrant::put() Puts values