lundi 6 avril 2020

what usage scenario different about laravel schedule event class withoutOverlapping method and onOneServer method

withoutOverlapping method create blow cache mutex

    $this->cache->store($this->store)->add(
        $event->mutexName(), true, $event->expiresAt
    );

onOneServer method create blow cache mutex

$this->cache->store($this->store)->add(
        $event->mutexName().$time->format('Hi'), true, 60
);

look like ,if i use withoutOverlapping then not need onOneServer



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire