Description
As per email discussions with Patrick Varley, we should add support for setting expiry to Subdocument mutation commands.
I been thinking a lot about expiries with sub doc and I have come to the collusion that subdoc should support updating expiry. The main reasons being:
The sprit of sub doc is to reduce bandwidth. Without the ability to set the TTL the developer will have to use two operates (subdoc then a touch) which will in turn create two mutations on the DCP stream (It might get de-duplicated in the snapshot).
All other mutation operations apart from prepend/append allows for the ttl to be updated. By supporting it in subdoc it improves the developer experience as there is less code to write. Users(MB-12384) have already requested that prepend/append support appends.
Full details to be added to the subdoc protocol specification (https://docs.google.com/document/d/1hOQIPMTEFTmdNgWftSZddMtoc57Zi_yuKJ8BW-QJSiQ/edit#)
Attachments
Issue Links
For Gerrit Dashboard: MB-16356 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
55564,5 | MB-16356: Subdoc: Add support for setting expiry for mutation commands | master | memcached | Status: MERGED | +2 | +1 |