Php/docs/class.swoole-table
From Get docs
(PECL swoole >= 1.9.0)
Introduction
Class synopsis
const
int
TYPE_INT
= 1
const
int
TYPE_STRING
= 7
const
int
TYPE_FLOAT
= 6
/* Methods */
public column
( string $name
, string $type
[, int $size
] ) : ReturnType
public count ( ) : int
public create ( ) : void
public current ( ) : array
public decr
( string $key
, string $column
[, int $decrby
] ) : ReturnType
public del
( string $key
) : void
public destroy ( ) : void
public exist
( string $key
) : bool
public get
( string $row_key
, string $column_key
) : int
public incr
( string $key
, string $column
[, int $incrby
] ) : void
public key ( ) : string
public next ( ) : ReturnType
public rewind ( ) : void
public set
( string $key
, array $value
) : VOID
public valid ( ) : bool
}
Predefined Constants
Swoole\Table::TYPE_INT
Swoole\Table::TYPE_STRING
Swoole\Table::TYPE_FLOAT
Table of Contents
- Swoole\Table::column — Set the data type and size of the columns.
- Swoole\Table::__construct — Construct a Swoole memory table with fixed size.
- Swoole\Table::count — Count the rows in the table, or count all the elements in the table if $mode = 1.
- Swoole\Table::create — Create the swoole memory table.
- Swoole\Table::current — Get the current row.
- Swoole\Table::decr — Decrement the value in the Swoole table by $row_key and $column_key.
- Swoole\Table::del — Delete a row in the Swoole table by $row_key.
- Swoole\Table::destroy — Destroy the Swoole table.
- Swoole\Table::exist — Check if a row is existed by $row_key.
- Swoole\Table::get — Get the value in the Swoole table by $row_key and $column_key.
- Swoole\Table::incr — Increment the value by $row_key and $column_key.
- Swoole\Table::key — Get the key of current row.
- Swoole\Table::next — Iterator the next row.
- Swoole\Table::rewind — Rewind the iterator.
- Swoole\Table::set — Update a row of the table by $row_key.
- Swoole\Table::valid — Check current if the current row is valid.
/* Constants */