dynamic upload clear the room_id from _pool and re-upload it using load Args: room_id: The Roo ID to refresh Return: Room:The refreshed room instance
(cls, room_id: str)
| 294 | |
| 295 | @classmethod |
| 296 | def upload_cache(cls, room_id: str) -> Room: |
| 297 | """ |
| 298 | dynamic upload |
| 299 | clear the room_id from _pool and re-upload it using load |
| 300 | Args: |
| 301 | room_id: The Roo ID to refresh |
| 302 | Return: |
| 303 | Room:The refreshed room instance |
| 304 | """ |
| 305 | if room_id in cls._pool: |
| 306 | del cls._pool[room_id] |
| 307 | return cls.load(room_id) |
| 308 | |
| 309 | def __str__(self) -> str: |
| 310 | """ |
no test coverage detected