Eixo-Queue

 view release on metacpan or  search on metacpan

lib/Eixo/Queue/MongoDriver.pm  view on Meta::CPAN

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
        }
 
        $self->getCollection($collection)->insert_one({
        _id => $job->id,
        %{$job->to_hash}
    });
 
}
 
sub updateJob{
        my ($self, $job, $collection) = @_;
 
        $self->getCollection($collection)->update(
 
        {_id=>$job->id} ,
 
        $job->to_hash
    );
}



( run in 0.274 second using v1.01-cache-2.11-cpan-26ccb49234f )