interface IncrementDecrementInterface

Increment and decrement interface.

Methods

false|int
increment(string $key, int $step = 1)

Increments a stored number.

false|int
decrement(string $key, int $step = 1)

Decrements a stored number.

Details

at line 22
false|int increment(string $key, int $step = 1)

Increments a stored number.

Parameters

string $key Cache key
int $step Step

Return Value

false|int

at line 31
false|int decrement(string $key, int $step = 1)

Decrements a stored number.

Parameters

string $key Cache key
int $step Step

Return Value

false|int