Skip to content

Releases: hexcowboy/rslock

rslock 0.6.0

18 Nov 02:48
f7ca9f7
Compare
Choose a tag to compare
  • Adds support for creating new LockManagers from pre-existing Redis clients using LockManager::from_clients

Sample syntax:

// Create Redis clients
let uris = vec![
    "redis://127.0.0.1:6380/",
    "redis://127.0.0.1:6381/",
    "redis://127.0.0.1:6382/",
];

let clients: Vec<Client> = uris
    .iter()
    .map(|uri| Client::open(*uri).expect("Failed to create Redis client"))
    .collect();

// Initialize the LockManager using `from_clients`
let rl = LockManager::from_clients(clients);

See full example in examples/from_clients.rs

rslock 0.5.1

18 Nov 01:51
a0275da
Compare
Choose a tag to compare
  • Upgraded all dependencies to latest versions
    • redis is now at 0.27.5 which had some deprecated APIs that have been addressed
    • testcontainers is now at 0.23.1 which had breaking API changes that have also been addressed
  • Changes made to some tests to help with slow CI environments accidentally failing tests

rslock v0.5.0

14 Sep 08:59
76c4132
Compare
Choose a tag to compare
  • Locks can now be shared across threads #22 @mtfcd
    • LockGuard is no longer Clone
    • No lifetime on LockGuard anymore
    • LockManager now has lock_manager_inner: Arc<LockManagerInner>
    • New example added
  • Added LockManager::is_freed which can tell you if a lock is truly freed #23