(self, device_type)
| 10 | self.devices = {} |
| 11 | |
| 12 | def get(self, device_type): |
| 13 | if device_type not in self.devices: |
| 14 | self.devices[device_type] = falcor.Device(type=device_type) |
| 15 | return self.devices[device_type] |
| 16 | |
| 17 | |
| 18 | device_cache = DeviceCache() |