Expand description
disque-rs is a rust implementation of a Disque client library. It uses redis-rs to handle the connection and low level protocol.
The crate is called disque
and you can depend on it via cargo:
``ini [dependencies.disque] version = “*”
# Connection Parameters
disque-rs knows different ways to define where a connection should
go. The parameter to `Disque::open` needs to implement the
`IntoConnectionInfo` trait of which there are three implementations:
* string slices in `redis://` URL format.
* URL objects from the redis-url crate.
* `ConnectionInfo` objects.
The URL format is `redis://[:<passwd>@]<hostname>[:port][/<db>]`
Notice the scheme is actually "redis" because it uses the Redis protocol.
By default, it will use port 6379, although Disque uses 7711.
# Unix Sockets
For unix socket support, install `redis` with the feature "unix_socket".
# Command reference
The commands are a direct implementation of Disque commands. To read a
reference about their meaning, go to https://github.com/antirez/disque
Structs
- Helper to add a new job
- Helper to get a list of jobs
- Helper to get a list of queues
Traits
- This trait is used to convert a redis value into a more appropriate type. While a redis
Value
can represent any response that comes back from the redis server, usually you want to map this into something that works better in rust. For instance you might want to convert the return value into aString
or an integer.