MCPcopy Index your code
hub / github.com/saltstack/salt / cache

Function cache

tests/pytests/unit/utils/test_mmap_cache_errors.py:42–45  ·  view source on GitHub ↗
(cache_path)

Source from the content-addressed store, hash-verified

40
41@pytest.fixture
42def cache(cache_path):
43 c = MmapCache(cache_path, size=_SIZE, slot_size=_SLOT_SIZE, key_size=_KEY_SIZE)
44 yield c
45 c.close()
46
47
48# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
MmapCacheClass · 0.90

Tested by

no test coverage detected