Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to KV implementation #347

Merged
merged 8 commits into from
Sep 6, 2022
Merged

Updates to KV implementation #347

merged 8 commits into from
Sep 6, 2022

Conversation

wallyqs
Copy link
Member

@wallyqs wallyqs commented Sep 6, 2022

  • Added connected_server_version to check server version
  • Added allow_direct, placement, republish fields to StreamConfig
  • Added get_msg(direct=True) option for faster lookups without encapsulated data as JSON
  • Changed KV duplicate_window to be 2 minutes like Go client.
  • Changed KV discard_policy to DiscardPolicy.NEW
  • Added KeyNotFoundError and KeyWrongLastSequenceError errors for when kv.get fails
  • Added kv.get("key", revision=3 option to fetch past history of a key
  • Added js.get_msg("key", seq="3", next=True) to get the closest next value for a subject from given revision

@wallyqs wallyqs force-pushed the kv-updates branch 2 times, most recently from a788755 to c1eeb76 Compare September 6, 2022 17:07
Signed-off-by: Waldemar Quevedo <wally@nats.io>
Signed-off-by: Waldemar Quevedo <wally@nats.io>
Signed-off-by: Waldemar Quevedo <wally@nats.io>
Signed-off-by: Waldemar Quevedo <wally@nats.io>
Signed-off-by: Waldemar Quevedo <wally@nats.io>
Signed-off-by: Waldemar Quevedo <wally@nats.io>
Signed-off-by: Waldemar Quevedo <wally@nats.io>
Signed-off-by: Waldemar Quevedo <wally@nats.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant