Skip to content

rosecoder/distributed-lock-redis-swift

Repository files navigation

Distributed Lock for Redis in Swift

This package provides a Swift implementation for distributed locking using Redis. It's built to be used with distributed-lock-swift and RediStack.

Example usage

import DistributedLockRedis

let lock = RedisLock(client: redisClient)

try await lock.withLock("my-resource") {
    // operations that should be protected by the lock
}

It also provides logging and tracing support for the time the lock is waiting to be acquired.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages