Expand description
File-based locking mechanism for cache operations
This module provides thread-safe and process-safe locking for cache operations through OS-level file locks, ensuring data consistency when multiple AGPM processes access the same cache directory. File locking utilities for cache operations.
This module provides thread-safe and process-safe file locking for cache directories to prevent corruption during concurrent cache operations. The locks are automatically released when the lock object is dropped.
Structs§
- Cache
Lock - A file lock for cache operations
Functions§
- cleanup_
stale_ locks - Cleans up stale lock files in the cache directory.