Optional[int]: The CAS of the document, if it exists
(self)
| 1070 | |
| 1071 | @property |
| 1072 | def cas(self) -> int: |
| 1073 | """ |
| 1074 | Optional[int]: The CAS of the document, if it exists |
| 1075 | """ |
| 1076 | if self.ids_only: |
| 1077 | raise InvalidArgumentException(("No cas available when scan is requested with " |
| 1078 | "`ScanOptions` ids_only set to True.")) |
| 1079 | return self._orig.raw_result.get('scan_item', {}).get('body', {}).get('cas', 0) |
| 1080 | |
| 1081 | @property |
| 1082 | def expiry_time(self) -> Optional[datetime]: |
nothing calls this directly
no test coverage detected