| 12 | | if default is not None: |
| 13 | | self.add(key, default, timeout=timeout, version=version) |
| 14 | | # Fetch the value again to avoid a race condition if another |
| 15 | | # caller added a value between the first get() and the add() |
| 16 | | # above. |
| 17 | | return self.get(key, default, version=version) |
| | 12 | |
| | 13 | self.add(key, default, timeout=timeout, version=version) |
| | 14 | # Fetch the value again to avoid a race condition if another |
| | 15 | # caller added a value between the first get() and the add() |
| | 16 | # above. |
| | 17 | return self.get(key, default, version=version) |