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

RawKV CompareAndSwap should support setting a TTL #1431

Open
jcjones opened this issue Aug 22, 2024 · 0 comments
Open

RawKV CompareAndSwap should support setting a TTL #1431

jcjones opened this issue Aug 22, 2024 · 0 comments

Comments

@jcjones
Copy link

jcjones commented Aug 22, 2024

The CompareAndSwap method doesn't have an ability to take as an input the TTL of the resulting Key/Value, however the underlying kvrpcpb protobuf does have an (unused) entry for TTL, and the value is read and used by TiKV.

Request:
Add support to set a TTL during a CAS.

Use case:
When one uses CAS to create a new KV without overwriting an existing value, it's nice to be able to include a TTL in the initial setting, rather than having to do shenanigans that amount to a follow-on Put with a TTL.

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

No branches or pull requests

1 participant