redis-0.12: A driver for Redis key-value database

Database.Redis.Utils.Monad.Lock

Description

Same as Database.Redis.Utils.Lock but with monadic wrapped

Documentation

acquire :: (WithRedis m, BS s) => s -> Int -> Int -> m BoolSource

acquire' :: (BS s, WithRedis m) => s -> Int -> m BoolSource

acquireOnce :: (BS b, WithRedis m) => b -> m BoolSource

release :: (WithRedis m, BS s) => s -> m ()Source