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

CaffeineCache time to live not working #599

Closed
benkio opened this issue Oct 21, 2021 · 3 comments
Closed

CaffeineCache time to live not working #599

benkio opened this issue Oct 21, 2021 · 3 comments

Comments

@benkio
Copy link

benkio commented Oct 21, 2021

Hi there,
I'm experiencing a strange behaviour where, if you specify the time to live, the cache seems to not work and just return None over the get.
I recorded a video and reproduced it in a small dummy project with the same exact code.
Could you please tell we where I'm doing wrong? 🙇
test.zip

scalacache.mp4
@kubukoz
Copy link
Collaborator

kubukoz commented Oct 21, 2021

This is caused by #522.

I tried your code with

resolvers += Resolver.sonatypeRepo("snapshots")

and updating to 1.0.0-M4+50-63a28375-SNAPSHOT and the test passed. I'll release it now as 1.0.0-M5, might take an hour or so to publish.

@kubukoz
Copy link
Collaborator

kubukoz commented Oct 21, 2021

It's on: https://repo1.maven.org/maven2/com/github/cb372/scalacache-core_2.13/1.0.0-M5/

Let me know if that solves it for you.

@benkio
Copy link
Author

benkio commented Oct 21, 2021

Tested and works 💪

@benkio benkio closed this as completed Oct 21, 2021
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

No branches or pull requests

2 participants