Struct redlock::Lock
[−]
[src]
pub struct Lock<'a> {
pub resource: &'a [u8],
pub val: Vec<u8>,
pub validity_time: usize,
}Fields
resource | The resource to lock. Will be used as the key in Redis. |
val | The value for this lock. |
validity_time | Time the lock is still valid. Should only be slightly smaller than the requested TTL. |