我正在阅读Laravel Cache Documentation,它说可以将锁迁移到作业,然后
- 通过所有者恢复实例后释放,例如
Cache::restoreLock('processing', $this->owner)->release();
- 或不尊重当前所有者,例如
Cache::lock('processing')->forceRelease();
这让我想到一个问题what's the difference between them?
,或者也许what are the use cases for each of them?
任何人都可以解释它会非常感激。