def install_cache(cache_name='cache', backend=None, expire_after=None,
                  allowable_codes=(200,), allowable_methods=('GET',),
                  session_factory=CachedSession, **backend_options):
    if backend:
        backend = backends.create_backend(backend, cache_name, backend_options)

    class _ConfiguredCachedSession(session_factory):
        def __init__(self):
            super(_ConfiguredCachedSession, self).__init__(
                cache_name=cache_name,
                backend=backend,
                expire_after=expire_after,
                allowable_codes=allowable_codes,
                allowable_methods=allowable_methods,
                **backend_options
            )

    _patch_session_factory(_ConfiguredCachedSession)


# backward compatibility
On Windows there is no such thing as an rpath.
dataset/ETHPy150Open reclosedev/requests-cache/requests_cache/core.py/install_cache--crossover with--dataset/ETHPy150Open mesonbuild/meson/mesonbuild/backend/backends.py/Backend.determine_windows_extra_paths