Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mosic/exdisque
Elixir client for Disque (https://github.com/antirez/disque), an in-memory, distributed job queue.
https://github.com/mosic/exdisque
Last synced: 7 days ago
JSON representation
Elixir client for Disque (https://github.com/antirez/disque), an in-memory, distributed job queue.
- Host: GitHub
- URL: https://github.com/mosic/exdisque
- Owner: mosic
- License: mit
- Created: 2015-05-13T23:40:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-19T20:27:10.000Z (almost 6 years ago)
- Last Synced: 2024-08-08T21:09:30.067Z (3 months ago)
- Language: Elixir
- Size: 4.88 KB
- Stars: 17
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Elixir client for [Disque](https://github.com/antirez/disque), an in-memory, distributed job queue. (Queue)
- fucking-awesome-elixir - exdisque - Elixir client for [Disque](https://github.com/antirez/disque), an in-memory, distributed job queue. (Queue)
- awesome-elixir - exdisque - Elixir client for [Disque](https://github.com/antirez/disque), an in-memory, distributed job queue. (Queue)
README
ExDisque
========[Elixir](http://elixir-lang.org/) client for [Disque](https://github.com/antirez/disque), an in-memory, distributed job queue.
### Installation
Add this to your project's `mix.exs` file:
```elixir
{:exdisque, ">= 0.0.1"}
```### Usage
#### Connect to the Disque Server
``` elixir
{:ok, client} = ExDisque.start_link
```#### Add a job to a queue and fetch it back
``` elixir
ExDisque.query client, ["ADDJOB", "queue_name", "job_body", "0"]
#=> "DIa88749862374413ece8b8b8156a15466474edecb05a0SQ"
ExDisque.query client, ["GETJOB", "FROM", "queue_name"]
#=> [["queue", "DIa88749862374413ece8b8b8156a15466474edecb05a0SQ", "job_body"]]
```See more Disque command examples on the [Disque repo](https://github.com/antirez/disque#api).
### Dependencies
Only dependency of ExDisque is [eredis](https://github.com/wooga/eredis), Redis client written in Erlang.
### Contributing
Issues and pull requests welcome.
### License
ExDisque is licensed under the MIT License.