INNER CODE UNIT · Python

_clear_being_calculated

python-cachier/cachier · src/cachier/core.py:743

        def _clear_being_calculated():
            """Mark all entries in this cache as not being calculated."""
            core.clear_being_calculated()
            if is_coroutine:
                return _ImmediateAwaitable()
            return None

        async def _aclear_cache():
            """Clear the cache asynchronously."""
            await core.aclear_cache()

        async def _aclear_being_calculated():
            """Mark all entries in this cache as not being calculated asynchronously."""
            await core.aclear_being_calculated()

        def _cache_dpath():
            """Return the path to the cache dir, if exists; None if not."""
            return getattr(core, "cache_dir", None)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…