We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a11087 commit f55baf2Copy full SHA for f55baf2
README.md
@@ -40,6 +40,14 @@ if ($counter->value() < 100) {
40
}
41
```
42
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
51
*Important note.* You will have to use binary protocol in memcached.
52
For example, it could be enabled this way:
53
```php
0 commit comments