Skip to content
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

Replace usages of net.sf.ehcache.Cache with org.springframework.cache.Cache #429

Closed
3 tasks
arteymix opened this issue Sep 26, 2022 · 1 comment
Closed
3 tasks
Milestone

Comments

@arteymix
Copy link
Member

arteymix commented Sep 26, 2022

This will ease the transition to newer version of Hibernate (which eventually deprecated Ehcache altogether) and Ehcache by relying on a generic interface provided by Spring.

  • remove runtime creation of caches, everything should be in ehcache.xml and tested at startup in afterPropertiesSet if necessary
  • load caches from a generic Spring CacheManager
  • make Ehcache a runtime dependency (if necessary)

There are still a few low-level routines from Ehcache that we might want to use in certain contexts. For RDP, I noticed that we would benefit from Cache.removeAll to remove entries in bulk which has no equivalent in Spring Cache.

@arteymix arteymix added this to the 1.29.0 milestone Sep 26, 2022
@arteymix
Copy link
Member Author

arteymix commented Dec 2, 2022

With 8be5d33, Gemma is not any longer strictly dependent on Ehcache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant