Skip to content

Commit f55baf2

Browse files
committed
Updated docs to reflect add support for expiration.
1 parent 4a11087 commit f55baf2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ if ($counter->value() < 100) {
4040
}
4141
```
4242

43+
If you need use self expiring counter(flag?), you can set third
44+
parameter in the constructor:
45+
```php
46+
$counter = new MyCounter($user, $client, 3600); // hour, in this case
47+
```
48+
By default it's set to never expire.
49+
50+
4351
*Important note.* You will have to use binary protocol in memcached.
4452
For example, it could be enabled this way:
4553
```php

0 commit comments

Comments
 (0)