We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 25e530f + dc11d20 commit 3fac19fCopy full SHA for 3fac19f
components/lock.rst
@@ -203,8 +203,8 @@ to reset the TTL to its original value::
203
$lock->refresh(600);
204
205
This component also provides two useful methods related to expiring locks:
206
-``getExpiringDate()`` (which returns ``null`` or a ``\DateTimeImmutable``
207
-object) and ``isExpired()`` (which returns a boolean).
+``getRemainingLifetime()`` (which returns ``null`` or a ``float``
+as seconds) and ``isExpired()`` (which returns a boolean).
208
209
Shared Locks
210
------------
0 commit comments