public function save(AbstractJob $job) { $data = $job->getData(); if (!$job->isStored()) { $job->setId(uniqid()); } $this->redis->set($this->namespace . $job->getId(), json_encode($data)); return true; }