src/Mocks/ConcurrentRegionMock.php
public function setLock(CacheKey $key, Lock $lock)
    {
        $this->locks[$key->hash] = $lock;
    }
public function setLock(CacheKey $key, Lock $lock)
    {
        $this->locks[$key->hash] = $lock;
    }
public function setLock ( CacheKey $ key , Lock $ lock ) { $ this -> locks [ $ key -> hash ] = $ lock ; }
Locks a specific cache entry

@param \Doctrine\ORM\Cache\CacheKey $key
@param \Doctrine\ORM\Cache\Lock $lock
Locks a specific cache entry