disque

Crates.iodisque
lib.rsdisque
version0.2.3
sourcesrc
created_at2015-08-16 12:33:14.317592
updated_at2023-03-09 14:10:12.811761
descriptionA client library for Disque message broker
homepage
repositoryhttps://github.com/seppo0010/disque-rs
max_upload_size
id2853
size40,718
Sebastian Waisbrot (seppo0010)

documentation

http://seppo0010.github.io/disque-rs/

README

disque-rs

Build Status crates.io

disque-rs is a rust implementation of a Disque client library.

The crate is called disque and you can depend on it via cargo:

[dependencies]
disque = "0.2.1"

It currently requires Rust Beta or Nightly.

Basic Operation

extern crate disque;

use disque::Disque;
use std::time::Duration;

fn main() {
    let disque = Disque::open("redis://127.0.0.1:7711/").unwrap();
    let jobid = disque.addjob(b"my queue", b"my job",
            Duration::from_secs(10), None, None, None, None, None, false
            ).unwrap();
    let jobs = disque.getjob_count(true, None, 10, &[b"my queue"]).unwrap();
}

Documentation

For a more comprehensive documentation with all the available functions and parameters go to http://seppo0010.github.io/disque-rs/

For a complete reference on Disque, check out https://github.com/antirez/disque

Commit count: 52

cargo fmt