--
You received this message because you are subscribed to the Google Groups "Gearman" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gearman+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Gearman" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gearman/D8Ju2FDkQ8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gearman+u...@googlegroups.com.
$worker = new GearmanWorker();
$worker->addServer();
$worker->addFunction("reverse", function ($job) {
return strrev($job->workload());
});
When you're doing a client request you're telling the server what you need to run:
$client = new GearmanClient();
$client->addServer();
print $client->do("reverse", "Hello World!");
At this point the server knows your what worker is able to process 'reverse' jobs so it will send the work to it, you don't have to do anything.What you need to do is (simplified version):1. start the server2. start the workers3. do the client requests :)
To unsubscribe from this group and stop receiving emails from it, send an email to gearman+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Gearman" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gearman/D8Ju2FDkQ8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gearman+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Gearman" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gearman+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Gearman" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gearman/D8Ju2FDkQ8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gearman+unsubscribe@googlegroups.com.