Cronario\Storage\Redis::save PHP Méthode

save() public méthode

public save ( AbstractJob $job ) : boolean
$job Cronario\AbstractJob
Résultat boolean
    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;
    }