KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
We use Spring cache framework for caching, and we'd like to able to support multiple namespaces for caches, such as "book", or "isbn", with the cache namespaces being configurable, rather than hardcoded in the class, like, instead of having @Cacheable({ "book","isbn"}) public Book findBook(ISBN isbn) {...} we want to be able somehow inject the cache name from a properties file, so that the cache name can be dynamically set, like: @Cacheable({ #cachename1, #cachename2}) public Book findBook(ISBN isbn) {...} I'm using SpEL here, but don't know if this is doable at all.
Tags (comma-separated)
Save Edits
Cancel