Core/src/SysvTrait.php
private function getSysvKey($idNum)
    {
        $key = getenv('GOOGLE_CLOUD_SYSV_ID') ?: self::$productionKey;
        $base = ftok(__FILE__, $key);
        if ($base == PHP_INT_MAX) {
            $base = 1;
        }
        return $base + $idNum;
    }
private function getSysvKey($idNum)
    {
        $key = getenv('GOOGLE_CLOUD_SYSV_ID') ?: self::$productionKey;
        $base = ftok(__FILE__, $key);
        if ($base == PHP_INT_MAX) {
            $base = 1;
        }
        return $base + $idNum;
    }
private function getSysvKey ( $ idNum ) { $ key = getenv ( 'GOOGLE_CLOUD_SYSV_ID' ) ? : self :: $ productionKey ; $ base = ftok ( __FILE__ , $ key ) ; if ( $ base == PHP_INT_MAX ) { $ base = 1 ; } return $ base + $ idNum ; }
Create a SystemV IPC key for the given id number.

Set GOOGLE_CLOUD_SYSV_ID envvar to change the base id.

@param int $idNum An id number.
@return int
Create a SystemV IPC key for the given id number .