TableManager
class TableManager
Properties
| protected TableState> | $states | The tables created before the server forks. |
|
| protected bool | $sealed |
Methods
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.
at line 35
TableState
get(string $name)
Get a Swoole rate limiter table by store name.
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.
at line 64
protected TableState
resolve(string $name)
Resolve a configured Swoole rate limiter table.