(cache_path)
| 24 | |
| 25 | @pytest.fixture |
| 26 | def cache(cache_path): |
| 27 | c = MmapCache(cache_path, size=_SIZE, slot_size=_SLOT_SIZE, key_size=_KEY_SIZE) |
| 28 | yield c |
| 29 | c.close() |
| 30 | |
| 31 | |
| 32 | # --------------------------------------------------------------------------- |