Swoole\Table->incr

Declaration

<?php
Swoole\Table->incr(mixed $key, string $column [, int $decrby = 1])

Parameters

key

The key value of the column, the value of the first column.

column

The column name to update.

decrby

Increase by the value.

Return

Description

In the case of using Table to save counters.

Increase the value of the column by one.

Example