Jenner\SimpleFork\Cache\SharedMemory::__construct PHP Method

__construct() public method

public __construct ( integer $size = 33554432, string $file = __FILE__ )
$size integer memory size
$file string
    public function __construct($size = 33554432, $file = __FILE__)
    {
        $this->size = $size;
        if (function_exists("shm_attach") === false) {
            $message = "\nYour PHP configuration needs adjustment. " . "See: http://us2.php.net/manual/en/shmop.setup.php. " . "To enable the System V shared memory support compile " . " PHP with the option --enable-sysvshm.";
            throw new \RuntimeException($message);
        }
        $this->attach($file);
        //create resources (shared memory)
    }