singleton icon indicating copy to clipboard operation
singleton copied to clipboard

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

Open lyiyu66 opened this issue 2 years ago • 0 comments

Describe the bug commit: 577b87bea7eea93fa1e02305ff2049820d65a30d 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.

lyiyu66 avatar Sep 25 '23 13:09 lyiyu66