You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
# About
10
10
11
-
The `TarantoolStore` implements symfony `PersistingStoreInterface`and persist locks using Tarantool Database.
11
+
The `TarantoolStore` implements symfony `PersistingStoreInterface` using Tarantool Database.
12
12
13
13
# Installation
14
14
@@ -61,21 +61,21 @@ if ($lock->acquire()) {
61
61
62
62
# Expiration helper
63
63
64
-
When key is expired it will be removed on acquiring new lock with same name. If your key names are not unique, you can use expiration daemon to cleanup your database.
64
+
When key is expired it will be removed on acquiring new lock with same name. If your key names are not unique, you can use php cleaner to cleanup your database. The best way to cleanup data is start a fiber inside tarantool. For more details see [expirationd module documentation](https://github.com/tarantool/expirationd)
65
65
66
66
```php
67
67
use Tarantool\Client\Client;
68
-
use Tarantool\SymfonyLock\ExpirationDaemon;
68
+
use Tarantool\SymfonyLock\Cleaner;
69
69
70
70
$client = Client::fromDefaults();
71
-
$expiration = new ExpirationDaemon($client);
71
+
$cleaner = new Cleaner($client);
72
72
73
73
// cleanup keys that are expired
74
-
$expiration->process();
74
+
$cleaner->process();
75
75
76
-
// by default expiration daemon will clean upto 100 items
76
+
// by default cleaner will process upto 100 items
77
77
// you can override it via optional configuration
78
-
$expiration = new ExpirationDaemon($client, [
78
+
$cleaner = new Cleaner($client, [
79
79
'limit' => 10,
80
80
]);
81
81
@@ -86,12 +86,12 @@ $expiration = new ExpirationDaemon($client, [
0 commit comments