Spanner/src/Session/CacheSessionPool.php
private function getDefaultLock()
    {
        if ($this->isSysvIPCLoaded()) {
            return new SemaphoreLock(
                $this->getSysvKey(crc32($this->cacheKey))
            );
        }

        return new FlockLock($this->cacheKey);
    }
private function getDefaultLock()
    {
        if ($this->isSysvIPCLoaded()) {
            return new SemaphoreLock(
                $this->getSysvKey(crc32($this->cacheKey))
            );
        }

        return new FlockLock($this->cacheKey);
    }
private function getDefaultLock ( ) { if ( $ this -> isSysvIPCLoaded ( ) ) { return new SemaphoreLock ( $ this -> getSysvKey ( crc32 ( $ this -> cacheKey ) ) ) ; } return new FlockLock ( $ this -> cacheKey ) ; }
Get the default lock.

@return LockInterface
Get the default lock .