mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +00:00
Simplify README
This commit is contained in:
parent
6f78451498
commit
3857d0600a
13
README.md
13
README.md
@ -6,9 +6,8 @@ those jobs on one or more queues, and processing them later.
|
|||||||
|
|
||||||
## Background ##
|
## Background ##
|
||||||
|
|
||||||
Resque was pioneered and is developed by the fine folks at GitHub (yes,
|
Resque was developed by the folks at GitHub and written in Ruby.
|
||||||
I am a kiss-ass), and written in Ruby. What you're seeing here is an
|
What you're seeing here is an almost direct port of the Resque worker and enqueue system to PHP.
|
||||||
almost direct port of the Resque worker and enqueue system to PHP.
|
|
||||||
|
|
||||||
For more information on Resque, visit the official GitHub project:
|
For more information on Resque, visit the official GitHub project:
|
||||||
<https://github.com/resque/resque>
|
<https://github.com/resque/resque>
|
||||||
@ -40,7 +39,6 @@ pre and post jobs
|
|||||||
* PHP 5.6+
|
* PHP 5.6+
|
||||||
* phpredis
|
* phpredis
|
||||||
* Redis 2.2+
|
* Redis 2.2+
|
||||||
* Composer
|
|
||||||
|
|
||||||
## Getting Started ##
|
## Getting Started ##
|
||||||
|
|
||||||
@ -54,7 +52,7 @@ If you're not familiar with Composer, please see <http://getcomposer.org/>.
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"require": {
|
"require": {
|
||||||
"idanoo/php-resque": "dev-master"
|
"iDanoo/php-resque": "dev-master"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -79,7 +77,7 @@ Jobs are queued as follows:
|
|||||||
Resque::setBackend('localhost:6379');
|
Resque::setBackend('localhost:6379');
|
||||||
|
|
||||||
$args = array(
|
$args = array(
|
||||||
'name' => 'Chris'
|
'name' => 'TestName'
|
||||||
);
|
);
|
||||||
Resque::enqueue('default', 'My_Job', $args);
|
Resque::enqueue('default', 'My_Job', $args);
|
||||||
```
|
```
|
||||||
@ -93,8 +91,7 @@ class My_Job
|
|||||||
{
|
{
|
||||||
public function perform()
|
public function perform()
|
||||||
{
|
{
|
||||||
// Work work work
|
echo $this->args['name']; // Outputs 'TestName'
|
||||||
echo $this->args['name'];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user