Postgres advisory locks, table locks, and blocking lock management.
Easy distributed locking using PostgreSQL Advisory Locks.
Caching and distributed locks in your applications with just one or two lines. Easy to learn. Fast to code.
When there are not enough locks from the standard library
Locks for arbitrary resources