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: packages/cache/src/Cache.php
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,15 @@ interface Cache
20
20
set;
21
21
}
22
22
23
+
/**
24
+
* Returns a lock for the specified key. The lock is not acquired until `acquire()` is called.
25
+
*
26
+
* @param Stringable|string $key The identifier of the lock.
27
+
* @param null|Duration|DateTimeInterface $expiration The expiration time for the lock. If not specified, the lock will not expire.
28
+
* @param null|Stringable|string $owner The owner of the lock, which will be used to identify the process releasing it. If not specified, a random string will be used.
0 commit comments