MCPcopy Index your code
hub / github.com/couchbase/couchbase-python-client / cas

Method cas

couchbase/result.py:1072–1079  ·  view source on GitHub ↗

Optional[int]: The CAS of the document, if it exists

(self)

Source from the content-addressed store, hash-verified

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]:

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected