public function save()
    {

        if ($this->id) {
            $this->id = shmop_open($this->key, $this->mode, $this->permission, $this->size);
        }

        @shmop_write($this->id, serialize($this->data), $this->offset);

        return true;
    }