INNER CODE UNIT · Python

func_wrapper

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

            def func_wrapper(*args: _P.args, **kwargs: _P.kwargs) -> _R:
                return _call(*args, **kwargs)  # type: ignore[arg-type]

        def _clear_cache():
            """Clear the cache."""
            core.clear_cache()
            if is_coroutine:
                return _ImmediateAwaitable()
            return None

        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():

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…