squirrel.zarr.sync
¶
Module Contents¶
Classes¶
Provides synchronization using thread locks. |
-
class
squirrel.zarr.sync.
SquirrelThreadSynchronizer
¶ Bases:
zarr.sync.ThreadSynchronizer
Provides synchronization using thread locks.
Modify ThreadSynchronizer, periodically remove unlocked locks to avoid excessive memory consumption.
-
__getitem__
(self, item: str) → threading.Lock¶ Return a lock from cache if exists, otherwise create a new lock.
-