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

Extension of KeyValueCache interface #1513

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

andrey-kashcheev
Copy link
Collaborator

Added main operations like Read, Write, Remove.
The difference with the old one is that new API may return actual error instead of cryptic false.
DefaultCache implementation was extended as well
to cover new methods.

Relates-To: OCMAM-3, OAM-2431

Copy link

codecov bot commented May 17, 2024

Codecov Report

Attention: Patch coverage is 64.53901% with 50 lines in your changes are missing coverage. Please review.

Project coverage is 81.39%. Comparing base (e2b4c85) to head (18a8c78).
Report is 2 commits behind head on master.

Files Patch % Lines
olp-cpp-sdk-core/src/cache/DefaultCacheImpl.cpp 77.88% 9 Missing and 14 partials ⚠️
...pp-sdk-core/include/olp/core/cache/KeyValueCache.h 0.00% 14 Missing ⚠️
olp-cpp-sdk-core/src/cache/DefaultCache.cpp 0.00% 8 Missing ⚠️
olp-cpp-sdk-core/src/cache/DiskCache.cpp 66.67% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1513      +/-   ##
==========================================
- Coverage   81.50%   81.39%   -0.11%     
==========================================
  Files         341      342       +1     
  Lines       13417    13481      +64     
  Branches     1447     1451       +4     
==========================================
+ Hits        10935    10972      +37     
- Misses       1904     1927      +23     
- Partials      578      582       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Added main operations like Read, Write, Remove.
The difference with the old one is that new API may
return actual error instead of cryptic `false`.
DefaultCache implementation was extended as well
to cover new methods.

Relates-To: OCMAM-3, OAM-2431
Signed-off-by: Andrey Kashcheev <[email protected]>
Copy link
Collaborator

@rustam-gamidov-here rustam-gamidov-here left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This error is not correct looks a bit scary for not ideal error code as for me. Not critical though

@andrey-kashcheev andrey-kashcheev merged commit 79d30c9 into master May 21, 2024
20 of 22 checks passed
@andrey-kashcheev andrey-kashcheev deleted the ocmam-3-cache-errors branch May 21, 2024 10:49
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.

None yet

3 participants