INNER CODE UNIT · Python

_aclear_cache

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

        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)

        def _precache_value(*args, value_to_cache, **kwds):
            """Add an initial value to the cache.

            Parameters
            ----------
            *args : Any

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…