-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[SHIRO-849] Adds cache module for JCache #332
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
Conversation
bmarwell
left a comment
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.
If you can open an issue, I'd say let's go for 1.9 or 1.10! :)
|
Created issue: https://issues.apache.org/jira/browse/SHIRO-849 |
|
LGTM. Can we move this forward? Thanks! |
|
I'm not sure what the osgi related config should be: https://github.com/apache/shiro/pull/332/files#diff-fe1d5bdae7660405b02de35c849a3f235600c2e7c318f64b8635accfabf4b1abR77-R81 I'm guessing the above is wrong (given the hazelcast package name) anyone want to take a pass at that part? |
|
Maybe we could replace |
Let me take a look, we just need to import the jcache package to not depend on jcache implementation. For Hazelcast, user needs to install the hazelcast jcache osgi bundle. I will make some tests. |
|
And agree, I will work on |
fpapon
left a comment
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.
This can be closed, I submitted a new PR to replace this one:
- Rebase with 1.11.x
- Update osgi metadata
- Add Karaf feature
| <Export-Package>org.apache.shiro.jcache*;version=${project.version}</Export-Package> | ||
| <Import-Package> | ||
| org.apache.shiro*;version="${shiro.osgi.importRange}", | ||
| com.hazelcast*;version="${jcache.osgi.importRange}", |
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 cannot see where we are using the com.hazelcast package, I think it's more like javax.cache*
fpapon
left a comment
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.
See last comment
This will allow for any JCache implementation to work with Shiro, as well as new versions of EhCache & Hazelcast.
Fixes: SHIRO-816
Fixes: SHIRO-479
NOTE: This currently targets 1.8 (which would need to be bumped to 1.9 before merging)
Going forward we could replace
org.apache.shiro.cachewith JCache, and updateMemoryConstrainedCacheManagerto be a safe fallback.