File tree 1 file changed +3
-3
lines changed
Filter options
src/Symfony/Component/Lock/Store
1 file changed +3
-3
lines changed
Original file line number Diff line number Diff line change 29
29
30
30
* CAUTION: This store relies on all client and server nodes to have
31
31
* synchronized clocks for lock expiry to occur at the correct time.
32
- * To ensure locks don't expire prematurely; the ttl's should be set with enough
32
+ * To ensure locks don't expire prematurely; the TTLs should be set with enough
33
33
* extra time to account for any clock drift between nodes.
34
34
*
35
35
* @author Jérémy Derussé <jeremy@derusse.com>
@@ -79,7 +79,7 @@ public function __construct($connOrDsn, array $options = array(), float $gcProba
79
79
throw new InvalidArgumentException (sprintf ('"%s" requires gcProbability between 0 and 1, "%f" given. ' , __METHOD__ , $ gcProbability ));
80
80
}
81
81
if ($ initialTtl < 1 ) {
82
- throw new InvalidArgumentException (sprintf ('%s() expects a strictly positive TTL. Got %d . ' , __METHOD__ , $ initialTtl ));
82
+ throw new InvalidArgumentException (sprintf ('%s() expects a strictly positive TTL, "%d" given . ' , __METHOD__ , $ initialTtl ));
83
83
}
84
84
85
85
if ($ connOrDsn instanceof \PDO ) {
@@ -210,7 +210,7 @@ public function exists(Key $key)
210
210
}
211
211
212
212
/**
213
- * Returns an hashed version of the key.
213
+ * Returns a hashed version of the key.
214
214
*/
215
215
private function getHashedKey (Key $ key ): string
216
216
{
You can’t perform that action at this time.
0 commit comments