Details
-
New Feature
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
2
-
SDK32
Description
Implement replicate_to and persist_to durability options.
NOTE: Currently c++ client does not implement observable durability.
The current structure is called ClientDurability
class ClientDurability: |
|
def __init__(self, |
replicate_to=ReplicateTo.NONE, # type: ReplicateTo |
persist_to=PersistTo.NONE # type: PersistTo |
):
|
"""
|
Client Durability
|
|
:param persist_to: If set, wait for the item to be removed |
from the storage of at least these many nodes |
|
:param replicate_to: If set, wait for the item to be removed |
from the cache of at least these many nodes |
(excluding the master)
|
"""
|
self._replicate_to = replicate_to |
self._persist_to = persist_to |
|
@property
|
def replicate_to(self) -> ReplicateTo: |
return self._replicate_to |
|
@property
|
def persist_to(self) -> PersistTo: |
return self._persist_to |
Attachments
Issue Links
- depends on
-
CXXCBC-53 Implement Legacy Durability
- Resolved
For Gerrit Dashboard: PYCBC-1276 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
179074,4 | PYCBC-1276: Add legacy durability | master | couchbase-python-client | Status: MERGED | +2 | +1 |