A set of functions extending couchbase for xdcr-safe data structures.