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
Fix cache TTL bug #252
Fix cache TTL bug #252
Conversation
Thanks a lot! But can you change: LocalLruCache[Any, (Long, Any)](maxElems) back to: LocalLruCache[Any, (Int, Any)](maxElems) It's because:
|
Try changing |
Fixed. About logger, log level DEBUG also does not work... |
Thanks! |
I've fixed and published the Xitrum Guide. It should be online soon. |
About the log, what log do you want to see? I don't see any call in your tests that outputs log. So of course no log will be output. |
I guess you want to see log like route collection log when normal Xitrum app is started? That log is only output when xitrum.Server is started. |
I will release Xitrum 2.14 in a few minutes. |
When i delete xitrum.conf from test/resources and run It is normal? |
Yes, because the current tests still haven't caused xitrum.conf to be loaded. Try adding However, because previously an implementation of SLF4J is not in the classpath, even when there's error log, you will not see it because without an implementation, all error logs will be ingored. I've just added Logback to test environment: Now if you delete xitrum.conf and add
|
FYI, I've just added "Xitrum 3" branch: The purpose is to update Netty from 3.x to 4.x. I think Xitrum 3 which uses Netty 4.x can be released in January. |
LruCache works incorrect. Methods like putSecond, putHour, putDay never works:
expireSec
is just seconds without system time offset, for example:putSecond("key", "value", 1) - expireSec == 1, 1000 always < System.currentTimeMillis().
I try to fix it in this pull request.
http://ngocdaothanh.github.io/xitrum/guide/cache.html?highlight=cache#cache-object