(session_id: str, update_ttl: bool = False)
| 327 | |
| 328 | |
| 329 | def get_cached_session(session_id: str, update_ttl: bool = False): |
| 330 | if update_ttl: |
| 331 | session_cache.keep(session_id, TASK_TTL) |
| 332 | session = session_cache.tryGet(session_id) |
| 333 | if not session: |
| 334 | session = SessionState(session_id) |
| 335 | session_cache.put(session_id, session, TASK_TTL) |
| 336 | return session |
| 337 | |
| 338 | |
| 339 | def get_devices(): |
no test coverage detected