class TableManager

Properties

protected TableState> $states

The tables created before the server forks.

protected bool $sealed

Methods

__construct(Repository $config)

Create a new Swoole table manager.

get(string $name)

Get a Swoole rate limiter table by store name.

void
seal()

Prevent tables from being created after the server initialization phase.

resolve(string $name)

Resolve a configured Swoole rate limiter table.

Details

at line 28
__construct(Repository $config)

Create a new Swoole table manager.

Parameters

Repository $config

at line 35
TableState get(string $name)

Get a Swoole rate limiter table by store name.

Parameters

string $name

Return Value

TableState

at line 56
void seal()

Prevent tables from being created after the server initialization phase.

Boot-only. Creating a table after the server forks would give each worker private state instead of one shared rate limiter.

Return Value

void

at line 64
protected TableState resolve(string $name)

Resolve a configured Swoole rate limiter table.

Parameters

string $name

Return Value

TableState