Warning, file /plasma-bigscreen/youtube-voice-application/tempfix/search/session/session.py was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 from requests_cache import CachedSession
0002 from datetime import timedelta
0003 
0004 session = CachedSession(backend='memory', expire_after=timedelta(hours=1))
0005 
0006 
0007 def new_session(new_session):
0008     global session
0009     session = new_session
0010     return session
0011