Documentation is available online
Add it to your dependencies in Cargo.toml
toml
[dependencies]
oppgave = "0.1.0"
```rust
struct Job { id: u64 }
let client = redis::Client::open("redis://127.0.0.1/").unwrap(); let con = client.get_connection().unwrap(); let producer = Queue::new("default".into(), con);
producer.push(Job{ id: 42 }); ```
```rust
struct Job { id: u64 }
let client = redis::Client::open("redis://127.0.0.1/").unwrap(); let con = client.get_connection().unwrap(); let worker = Queue::new("default".into(), con);
while let Some(task) = worker.next() { println!("Working with Job {}", job.id); } ```
MIT. See LICENSE.