I was reading Laravel Cache Documentation, and it said that a lock could be migrated to a job and then
- released after restoring the instance via the owner, like
Cache::restoreLock('processing', $this->owner)->release();
- or doesn't respect to the current owner, like
Cache::lock('processing')->forceRelease();
Which leads me to a question, what's the difference between them?
, or maybe what are the use cases for each of them?
Anyone could explain it will be so much appreciated.