async-redis-lock 0.2.3

A simple and easy-to-use asynchronous redis distributed lock implementation based on tokio and redis-rs.
Documentation
1
2
3
4
5
6
7
8
9
10
use thiserror::Error as ThisError;

#[derive(ThisError, Debug, PartialEq)]
pub enum Error {
    #[error("Id not found")]
    IdNotFound,

    #[error("Timeout")]
    Timeout,
}