Skip to content

Commit 329961d

Browse files
authored
Lock - replace getExpiringDate by getRemainingLifetime
As the method `getExpiringDate` doesn't exist, replace it by `getRemainingLifetime` which returns the remaining time to live in seconds
1 parent 77f1362 commit 329961d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/lock.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ to reset the TTL to its original value::
203203
$lock->refresh(600);
204204

205205
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).
206+
``getRemainingLifetime()`` (which returns ``null`` or a ``float``
207+
as seconds) and ``isExpired()`` (which returns a boolean).
208208

209209
Shared Locks
210210
------------

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy