public function lockSemaphore($id, string $section)
    {
        $key = $this->getSemaphoreKey($id, $section);

        $this->cache->put($key, 1, ['semaphore', $section], $this->lockingTime);
    }
public function lockSemaphore($id, string $section)
    {
        $key = $this->getSemaphoreKey($id, $section);

        $this->cache->put($key, 1, ['semaphore', $section], $this->lockingTime);
    }
public function lockSemaphore ( $ id , string $ section ) { $ key = $ this -> getSemaphoreKey ( $ id , $ section ) ; $ this -> cache -> put ( $ key , 1 , [ 'semaphore' , $ section ] , $ this -> lockingTime ) ; }
Lock the semaphore with input key and section.

@param string $id
@param string $section
Lock the semaphore with input key and section .