Update will update the value if the latest revision matches.
(ctx context.Context, key string, value []byte, revision uint64)
| 1087 | |
| 1088 | // Update will update the value if the latest revision matches. |
| 1089 | func (kv *kvs) Update(ctx context.Context, key string, value []byte, revision uint64) (uint64, error) { |
| 1090 | return kv.updateRevision(ctx, key, value, revision, 0) |
| 1091 | } |
| 1092 | |
| 1093 | func (kv *kvs) updateRevision(ctx context.Context, key string, value []byte, revision uint64, ttl time.Duration) (uint64, error) { |
| 1094 | if !keyValid(key) { |
nothing calls this directly
no test coverage detected