-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Move caffeine out of extension and make it the default cache implementation. #4810
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
Changes from all commits
9e06a90
379821f
f1e826a
bf790fb
b372f8e
5cfe227
033f44b
f3c1aa9
b793ce3
2c00003
586b571
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,11 +23,12 @@ | |
| import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
| import com.google.inject.Provider; | ||
|
|
||
| @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", defaultImpl = LocalCacheProvider.class) | ||
| @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", defaultImpl = CaffeineCacheProvider.class) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you please edit the first comment of this PR to indicate that you do want to change the default? This threw me for a loop since it said you weren't going to, and I hadn't read the conversation between you and Ben yet where you changed your mind.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed |
||
| @JsonSubTypes(value = { | ||
| @JsonSubTypes.Type(name = "local", value = LocalCacheProvider.class), | ||
| @JsonSubTypes.Type(name = "memcached", value = MemcachedCacheProvider.class), | ||
| @JsonSubTypes.Type(name = "hybrid", value = HybridCacheProvider.class) | ||
| @JsonSubTypes.Type(name = "hybrid", value = HybridCacheProvider.class), | ||
| @JsonSubTypes.Type(name = "caffeine", value = CaffeineCacheProvider.class) | ||
| }) | ||
| public interface CacheProvider extends Provider<Cache> | ||
| { | ||
|
|
||
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.
Can you please expand on this a little bit? Imagine a reader that doesn't know why it's deprecated, or when it will be removed, how urgent the switch is, and so on. Maybe something like:
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.
added