815 B
815 B
KvRaw contracts (eventual consistency)
RawPut
- RPC:
kvrpc.KvRaw/RawPut - Request:
namespace: string(empty =>default)key: bytesvalue: bytes
- Response:
success: bool
- Semantics:
- Allowed only for namespaces in
eventualmode; returnsFailedPreconditionotherwise. - Writes locally with LWW timestamp prefix and queues best-effort async replication via Raft when a leader is present.
- Allowed only for namespaces in
RawGet
- RPC:
kvrpc.KvRaw/RawGet - Request:
namespace: string(empty =>default)key: bytes
- Response:
found: boolvalue: bytes(empty if not found)
- Semantics:
- Allowed only for
eventualnamespaces; returnsFailedPreconditionotherwise. - Returns value decoded from LWW-encoded payload (drops the timestamp).
- Allowed only for