Swoole
PHP Manual

The Swoole\Table class

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

简介

类摘要

Swoole\Table implements Iterator , Countable {
/* Constants */
const integer TYPE_INT = 1 ;
const integer TYPE_STRING = 7 ;
const integer TYPE_FLOAT = 6 ;
/* 方法 */
public ReturnType column ( string $name , string $type [, integer $size ] )
public integer count ( void )
public void create ( void )
public array current ( void )
public ReturnType decr ( string $key , string $column [, integer $decrby ] )
public void del ( string $key )
public void destroy ( void )
public boolean exist ( string $key )
public integer get ( string $row_key , string $column_key )
public void incr ( string $key , string $column [, integer $incrby ] )
public string key ( void )
public ReturnType next ( void )
public void rewind ( void )
public VOID set ( string $key , array $value )
public boolean valid ( void )
}

预定义常量

Swoole\Table::TYPE_INT

Swoole\Table::TYPE_STRING

Swoole\Table::TYPE_FLOAT

Table of Contents


Swoole
PHP Manual