Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
denisyukphp committed Feb 9, 2021
1 parent b8dcf97 commit 933cd53
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,8 @@ class RedisCounter implements Counter
$this->client = $client;
}

public function increment(): int
public function increment(string $key = 'throttler:weighted-round-robin:counter'): int
{
$key = 'throttler:weighted-round-robin:counter';

if (!$this->client->exists($key)) {
$this->client->set($key, -1);
}
Expand Down

0 comments on commit 933cd53

Please sign in to comment.