Closed
Description
replace(
key=new_data["id"],
value=new_data,
opts=ReplaceOptions(
# cas=old.cas, # This parameter does not work as expected (does not take effect) in Couchbase Python SDK 4.3.5
durability=ServerDurability(
level=DurabilityLevel.PERSIST_TO_MAJORITY
)
),
cas=old_cas, # This parameter works as expected (takes effect) in Couchbase Python SDK 4.3.5
)
Explanation:
In the Couchbase Python SDK 4.3.5, there is an issue where specifying the 'cas' parameter inside the ReplaceOptions object
(e.g., cas=old.cas
) does not function correctly and does not take effect. However, passing the 'cas' parameter directly
to the replace
function (outside of the ReplaceOptions
object) works as intended.
Metadata
Metadata
Assignees
Labels
No labels