-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Add NullCacheAdapter #2636
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
Add NullCacheAdapter #2636
Conversation
Tests failed but it is not my fault. |
Current coverage is 92.12% (diff: 100%)@@ master #2636 diff @@
==========================================
Files 99 101 +2
Lines 12113 12304 +191
Methods 1488 1529 +41
Messages 0 0
Branches 1996 2022 +26
==========================================
+ Hits 11154 11335 +181
- Misses 959 969 +10
Partials 0 0
|
@yuki-takeichi thanks for the PR. We're cautious adding come additional adapter to the main code base. The biggest pain point is that to access them, you need to know the internal path of that said adapter and that prevent maintainers from doing extra refactoring (like what happened to the FileLoggerAdapter when renamed to WinstonLoggerAdapter). I know it's a lot to ask, but could you add a module that would be accessed with:
Do you think that's possible? Thanks. |
} | ||
|
||
clear() { | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix it.
@yuki-takeichi updated the pull request - view changes |
@yuki-takeichi updated the pull request - view changes |
@flovilmart BTW, I can't find out the reason why Regards, |
That looks good to me. |
It throws something like: |
NullCacheAdapter disables in-memory cache explicitly in order to prevent cache inconsistency between multiple servers.