Fourché
A simple task queue named after a lion with forked tail (queue fourché), works with Redis.
Repositories
This library is developed mainly on Codeberg.org, but the source code is hosted also on sourcehut.
Any patches, merge/pull requests or issues on those repositories are welcomed.
# the main branch is "trunk"
Installation
# eg. async
Example
use ;
Sync
feature: sync (default)
use Queue;
use Commands;
let client = open.unwrap;
let mut conn = client.get_connection.unwrap;
let job =
let mut queue = new;
// enqueue
if let Err = queue.
// dequeue
loop
Async
feature: async
use AsyncQueue;
use AsyncCommands;
let client = open.unwrap;
let mut conn = client.get_multiplexed_async_connection.await.unwrap;
let job =
let mut queue = new;
// enqueue
if let Err = queue..await
// dequeue
loop
License
Fourche
Copyright 2019-2025 Yasha
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.