Swoole Swoole\Table 클래스
(PECL swoole >= 1.9.0)
소개
클래스 개요
class Swoole\Table implements Iterator, Countable {
/* Constants */
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
}
미리 정의된 상수
Swoole\Table::TYPE_INT
Swoole\Table::TYPE_STRING
Swoole\Table::TYPE_FLOAT
목차
- Swoole\Table::column — 열의 데이터 유형과 크기를 설정합니다.
- Swoole\Table::__construct — 고정 크기의 Swoole 메모리 테이블을 구성합니다.
- Swoole\Table::count — 테이블의 행 수를 계산하거나 $mode = 1인 경우 테이블의 모든 요소를 계산합니다.
- Swoole\Table::create — swoole 메모리 테이블을 만듭니다.
- Swoole\Table::current — 현재 행을 가져옵니다.
- Swoole\Table::decr — Swoole 테이블의 값을 $row_key 및 $column_key만큼 감소시킵니다.
- Swoole\Table::del — $row_key로 Swoole 테이블의 행을 삭제합니다.
- Swoole\Table::destroy — Destroy the Swoole table.
- Swoole\Table::exist — $row_key에 의해 행이 존재하는지 확인하십시오.
- Swoole\Table::get — $row_key 및 $column_key로 Swoole 테이블의 값을 가져옵니다.
- Swoole\Table::incr — $row_key 및 $column_key만큼 값을 증가시킵니다.
- Swoole\Table::key — 현재 행의 키를 가져옵니다.
- Swoole\Table::next — Iterator the next row.
- Swoole\Table::rewind — Rewind the iterator.
- Swoole\Table::set — $row_key로 테이블의 행을 업데이트합니다.
- Swoole\Table::valid — 현재 행이 유효한 경우 현재를 확인하십시오.