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

[to #734] add time unit for ttl param #646

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

razertory
Copy link

What problem does this PR solve?

add methods with time unit param for RawKVClientBase for easier use

What is changed and how does it work?

add default method in interface RawKVClientBaseinclude

  • void put(ByteString key, ByteString value, long ttl)
  • Optional<ByteString> putIfAbsent(ByteString key, ByteString value, long ttl)
  • void compareAndSet(ByteString key, Optional<ByteString> prevValue, ByteString value, long ttl)
  • void batchPut(Map<ByteString, ByteString> kvPairs, long ttl);

Code changes

  • Has methods of interface change YES

Check List for Tests

This PR has been tested by at least one of the following methods:

  • Unit test

Side effects

  • No side effects

Related changes

  • Need to update the documentation
  • Need to be included in the release note

@github-actions
Copy link

This PR is stale because it has been open 30 days with no activity. Remove the status/stale label or comment or this PR will be closed in 7 days.

@github-actions
Copy link

This PR was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this Sep 18, 2022
@zhangyangyu zhangyangyu reopened this Dec 16, 2022
@codecov
Copy link

codecov bot commented Dec 16, 2022

Codecov Report

Patch coverage: 45.45% and project coverage change: -3.08 ⚠️

Comparison is base (a523312) 38.11% compared to head (adf7060) 35.04%.

❗ Current head adf7060 differs from pull request most recent head 4f0b3ba. Consider uploading reports for the commit 4f0b3ba to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #646      +/-   ##
============================================
- Coverage     38.11%   35.04%   -3.08%     
+ Complexity     1613     1448     -165     
============================================
  Files           278      279       +1     
  Lines         17482    17391      -91     
  Branches       1986     1975      -11     
============================================
- Hits           6663     6094     -569     
- Misses        10154    10681     +527     
+ Partials        665      616      -49     
Impacted Files Coverage Δ
src/main/java/org/tikv/raw/RawKVClientBase.java 45.45% <45.45%> (ø)

... and 43 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@razertory razertory changed the title add time unit for ttl param [to #734] add time unit for ttl param Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants