Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seppo0010/disque-rs
Disque client library for rust
https://github.com/seppo0010/disque-rs
Last synced: about 17 hours ago
JSON representation
Disque client library for rust
- Host: GitHub
- URL: https://github.com/seppo0010/disque-rs
- Owner: seppo0010
- License: bsd-3-clause
- Created: 2015-08-16T08:35:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-09T14:09:19.000Z (over 1 year ago)
- Last Synced: 2024-10-08T13:09:57.903Z (about 1 month ago)
- Language: Rust
- Homepage:
- Size: 961 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# disque-rs
[![Build Status](https://travis-ci.org/seppo0010/disque-rs.svg?branch=master)](https://travis-ci.org/seppo0010/disque-rs)
[![crates.io](http://meritbadge.herokuapp.com/disque)](https://crates.io/crates/disque)disque-rs is a rust implementation of a Disque client library.
The crate is called `disque` and you can depend on it via cargo:
```toml
[dependencies]
disque = "0.2.1"
```It currently requires Rust Beta or Nightly.
## Basic Operation
```rust
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