FileLock.php 271 B

12345678910111213141516
  1. <?php
  2. namespace Illuminate\Cache;
  3. class FileLock extends CacheLock
  4. {
  5. /**
  6. * Attempt to acquire the lock.
  7. *
  8. * @return bool
  9. */
  10. public function acquire()
  11. {
  12. return $this->store->add($this->name, $this->owner, $this->seconds);
  13. }
  14. }