Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Ehcache 3 ticket registry and Ehcache 3 used in X509 CRL cache #4488
This is adds an Ehcache 3 ticket registry that can be used standalone or using Terracotta for a clustered cache. I don't have experience with Terracotta so I don't really know what configuration options are appropriate. The existing ehcache 2 registry should be able to be used in an app that also uses the x509 module with an ehcache 3 based cache.
@@ Coverage Diff @@ ## master #4488 +/- ## ============================================= - Coverage 50.32% 27.16% -23.17% + Complexity 8363 4292 -4071 ============================================= Files 2584 2588 +4 Lines 52673 52853 +180 Branches 4194 4213 +19 ============================================= - Hits 26508 14357 -12151 - Misses 24184 37380 +13196 + Partials 1981 1116 -865
I am ready for feedback and plan to do some testing in a dev environment using a snapshot after this is merged. I am currently using the ehcache 2 library and I plan to use a deployment with both the old and new ehcache modules built-in and use the enabled property to toggle back and forth. I purposely didn't support configuration via an ehcache.xml but that would be an option if there was a good reason to so and that reason couldn't be supported with additional property support.
…ket registry and Ehcache 3 used in X509 CRL cache (#4488) * cleanup duplicate method call * wip - ehcache 3 ticket registry * rename method from getAllExpired to getAllUnexpired * wip - ehcache3 updates * wip - ehcache3 updates * wip - connect terracott aserver working. * ehcache3 - add tests to ci, make registry configurable (enabled or not) by property * turn on logging for tests * change x509 crl cache to use ehcache3 * checkstyle * remove duplicate dependency * fix compile error * update javadoc * update ehcache 2 documentation with working manual peer discovery config * checkstyle * have ticket registry use existing caches if they exist * fix path * fix linefeeds and exclude ehcache tests from simple * switch to use jsr107 cachemanager so spring cache manager can wrap it * update documentation and make timeouts configurable * checkstyle and documentation link fix * fix stack overflow by calling wrong getTicket method * checkstyle * address feedback combine ehcache and ehcache3 docs combine ehcache and ehcache3 tests under same tag deprecate ehcache 2.x classes * checkstyle * checkstyle * make scripts executable * fix ci script path * change to TTL expiration policy