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

Function cache

tests/pytests/unit/utils/test_mmap_cache.py:26–29  ·  view source on GitHub ↗
(cache_path)

Source from the content-addressed store, hash-verified

24
25@pytest.fixture
26def 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# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
MmapCacheClass · 0.90

Tested by

no test coverage detected