Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 350 Bytes

README.rst

File metadata and controls

6 lines (4 loc) · 350 Bytes

File locks

This library provides a safe wrapper around flock(2). It avoids problems when using locks in multi-threaded applications, while still exposing exclusive and shared locks.

It also contains a caching utility, fslock.cache.cache_get_or_set(), which can be use to safely cache files that are expensive to produce on disk.