Database.Redis.Utils.Lock
Description
Emulating locking primitives
Documentation
Arguments
| :: BS s | |
| => Redis | |
| -> s | The lock's name |
| -> Int | Timeout in milliseconds. |
| -> Int | Time interval between attempts to lock on |
| -> IO Bool | True if lock was acquired |
Acquire lock. This function is not reentrant so thread can be locked by itself if it try to acquire the same lock before it was released.
acquireOnce :: BS s1 => Redis -> s1 -> IO Bool