Apache Shiro allows some implementations for CacheManager. EHCache is one of these implemenations.
I'd like to use Infinispan as Distributed Cache Manager. Until now, I'm not sure wheter it's feasible or not.
Does anybody know how to implement Infinispan as CacheManager for Apache Shiro ?
Thanks
I just uploaded Shiro Infinispan support project to GitHub (https://github.com/zbiljic/shiro-infinispan).
It's almost exact copy of EHCache implementation, but uses Infinispan instead.
I created this, and 'shiro-redis' project a year ago for some internal application, but never had the time to upload it.
We use it in production for some time now.
Related
I was trying to find some examples and evidence if Spring 4.0.3 version support caffeine cache integration? If yes, what caffeine cache version is supported for Spring 4.0.3?
Support was added in Spring Framework 4.3 and in Spring Boot 1.4. Previously you could use the Guava provider, which was the baseline for Caffeine's. That will likely be a good approach until you are ready to upgrade. If you really need to use Caffeine for performance reasons then you might try this alternative integration.
I have a Spring Boot app with caching enabled using the #EnableCaching in the main class and #Cacheable for certain methods. This was earlier working well.
Now I have also configured GemFire cache to store other data.
The older code with the #Cacheable annotation is now trying to fetch this data in the GemFire cache. Is there a way to define when to use which cache?
I'm new to this and would appreciate any inputs on the best practice to be followed in such case and what can be done to overcome this.
Have a look at this: https://docs.spring.io/spring-boot-data-geode-build/current/reference/html5/#geode-caching-provider, and specifically this: https://docs.spring.io/spring-boot-data-geode-build/current/reference/html5/#geode-caching-provider-disable.
If you are not using Spring Boot for Apache Geode (SBDG; see project home as well as the docs) (which also applies to VMware Tanzu GemFire as well, given GemFire is based on OSS, Apache Geode), then you most definitely should consider it.
If you need to control which cache is used for which, e.g. service method, then you should read more about custom cache resolution as opposed to the default cache resolution strategy.
Last, SBDG honors Spring Boot's Caching configuration, after SBDG is essentially Spring Boot specifically designed and developed for Apache Geode (and GemFire).
I am trying to implement Aerospike as cache in spring boot project. I had not found any implementation and documentation regarding this. I don't have idea of how to implement cache manager. please help if any solution available .
There were some big changes in the Cache area in Spring Data Aerospike - starting from versions 2.5.0/3.0.0.
Check out this medium article about Caching with Spring Boot and Aerospike: https://medium.com/aerospike-developer-blog/caching-with-spring-boot-and-aerospike-17b91267d6c
Does EHCache implemenation of JCache supports Distributed caching feature?
My requirement is Distributed Client-Server Cache: Multiple cache (clustered) nodes, collaborating in a distributed fashion and executing in isolation from the client application.
Thanks
Note: I am a developer working on Ehcache
Ehcache, depending on version, has two different ways it is integrated with JSR-107 / JCache:
Version 2.x needs the ehcache-jcache wrapper
Version 3, under active development, is a native implementation of it.
In both cases, while using the JSR-107 / JCache API in your application, you can benefit from the whole set of options available to native Ehcache. This includes the clustering support:
It is available with Ehcache 2.10.1 and Terracotta 4.3.1 today
It will be included in Ehcache 3. It has been released and is available with Ehcache 3.1 and above.
I have configured a JBoss Seam 2.2 application to run on JBoss 7.1. (See here and here) It runs with no problem after using this guide as a reference. However, every reference document that I've read either talks about disabling caching or ignores it altogether. I know that JBoss 7 has a new caching mechanism from previous versions. What do I need to do to leverage this within my Seam app? Or, do I just include the JARs from the previous caching implementation and use that?
Seam 2 as you probably realized has been morphed into CDI and most of the integration going forward will be around CDI.
Having said that there are ways to leverage infinispan (the new Cache used within JBoss AS 7) in your Seam application.
Here are a few references that might help you
http://www.mastertheboss.com/jboss-frameworks/infinispan/infinispan-tutorial-part-1
http://www.mastertheboss.com/jboss-frameworks/infinispan/infinispan-tutorial-part-2
http://infinispan.blogspot.com/2011/09/when-infinispan-meets-cdi.html
Hope this helps.
Good luck!