Skip to content

Skip internal keys' lookup in LRU for the DefaultCache. #1615

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

Merged
merged 4 commits into from
Jun 12, 2025

Conversation

asopov-here
Copy link
Collaborator

Currently, for mutable cache, the key should be in the protected list or LRU to be read. Internal keys are pretty important and should have priority to be read without additional restrictions.

Relates-to: DATASDK-71

@asopov-here asopov-here force-pushed the DATASDK-71-internal-keys branch 4 times, most recently from c6a9a70 to a55e373 Compare June 11, 2025 15:22
for the DefaultCache.

Relates-To: DATASDK-71
Signed-off-by: sopov <[email protected]>
@asopov-here asopov-here force-pushed the DATASDK-71-internal-keys branch from a55e373 to 3d31910 Compare June 11, 2025 15:40
Copy link

codecov bot commented Jun 11, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 80.27%. Comparing base (478cb38) to head (ad6e5c2).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
olp-cpp-sdk-core/src/cache/DefaultCacheImpl.cpp 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1615      +/-   ##
==========================================
+ Coverage   80.18%   80.27%   +0.09%     
==========================================
  Files         348      348              
  Lines       13883    13882       -1     
  Branches     1483     1482       -1     
==========================================
+ Hits        11132    11143      +11     
+ Misses       2150     2142       -8     
+ Partials      601      597       -4     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

for the DefaultCache.

Add test.

Relates-To: DATASDK-71
Signed-off-by: sopov <[email protected]>
@asopov-here asopov-here force-pushed the DATASDK-71-internal-keys branch from 129bd93 to 10d8395 Compare June 12, 2025 11:42
Copy link
Collaborator

@andrey-kashcheev andrey-kashcheev left a comment

Choose a reason for hiding this comment

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

Few minor comments, feel free to skip

for the DefaultCache.

Add test.

Relates-To: DATASDK-71
Signed-off-by: sopov <[email protected]>
for the DefaultCache.

Add test.

Relates-To: DATASDK-71
Signed-off-by: sopov <[email protected]>
@asopov-here asopov-here merged commit 2c80e5e into master Jun 12, 2025
23 of 24 checks passed
@asopov-here asopov-here deleted the DATASDK-71-internal-keys branch June 12, 2025 13: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.

3 participants