def install_cache(cache_name='cache', backend='sqlite', expire_after=None, allowable_codes=(200,), allowable_methods=('GET',), session_factory=CachedSession, **backend_options):
 _patch_session_factory((lambda : session_factory(cache_name=cache_name, backend=backend, expire_after=expire_after, allowable_codes=allowable_codes, allowable_methods=allowable_methods, **backend_options)))

def install_cache ( cache_name = 'cache' , backend = 'sqlite' , expire_after = None , allowable_codes = ( 200 , ) , allowable_methods = ( 'GET' , ) , session_factory = CachedSession , ** backend_options ) : _patch_session_factory ( ( lambda : session_factory ( cache_name = cache_name , backend = backend , expire_after = expire_after , allowable_codes = allowable_codes , allowable_methods = allowable_methods , ** backend_options ) ) )
installs cache for all requests requests by monkey-patching session parameters are the same as in :class:cachedsession .