Get LMDB key for an image path.
(self, image_path: str)
| 234 | return self._envs[shard_id] |
| 235 | |
| 236 | def _get_key(self, image_path: str) -> bytes: |
| 237 | """Get LMDB key for an image path.""" |
| 238 | return hashlib.md5(image_path.encode()).hexdigest().encode() |
| 239 | |
| 240 | def _get_shard_id_and_key(self, image_path: str) -> Tuple[int, bytes]: |
| 241 | """Get shard ID and LMDB key in one MD5 call (avoid double hashing). |
no outgoing calls
no test coverage detected