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

[BUG] [Java Client]Cache will not be expired for getMultiVersionMessage(). #2706

Open
lyiyu66 opened this issue Sep 25, 2023 · 0 comments
Open
Assignees

Comments

@lyiyu66
Copy link

lyiyu66 commented Sep 25, 2023

Describe the bug
commit: 577b87b
Cache will not be expired for getMultiVersionMessage().

To Reproduce
Steps to reproduce the behavior:

  1. Using getMultiVersionMessage() method in sharedLibary feature.
  2. Set its cache items to expire with below method:
cacheItem_zhcn.setCacheItem(cacheItem_zhcn.getEtag(), cacheItem_zhcn.getTimestamp(), 0l);
cacheItem_source.setCacheItem(cacheItem_source.getEtag(), cacheItem_source.getTimestamp(), 0l);
cacheItem_en.setCacheItem(cacheItem_en.getEtag(), cacheItem_en.getTimestamp(), 0l);
  1. Check the cache whether is expired: cache.getExpiredTime()
  2. See error: the cache always not expire

Expected behavior
cache should be expired in certain time, then new request will be sent out to service for updated translation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants