Skip to content

Add create for async-nats KV #1204

@praveenperera

Description

@praveenperera

Proposed change

The go library seems to have the Create function which succeeds to add a value for a key if it’s not set, or if the last operation was a delete.

However, the async-nats rust package seems to missing it.

// Create will add the key/value pair if it does not exist.
Create(key string, value []byte) (revision uint64, err error)

Use case

Leases / Distributed lock

Contribution

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalEnhancement idea or proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions