In ehcache-spring-annotations library available on google code, a configuration option "create-missing-caches" is available to create dynamic caches (cache not defined in ehcache.xml) on the fly. Is there a similar configuration available in pure spring ehcache abstraction (Spring 3.1.1)? Or is there any other way we can create dynamic caches using spring ehcache abstraction?
How to create cache dynamically with spring ehcache abstraction
6.4k Views Asked by Sudhir At
1
There are 1 best solutions below
Related Questions in SPRING
- Redirect inside java interceptor
- Spring RestTemplate passing the type of the response
- spring-integration-dsl-groovy-http return null when i use httpGet method
- Custom Spring annotation for request parameters
- Spring - configure Jboss Intros for xml with java config?
- HTTP Status 404 - Not Found in Spring 3.2.7
- AndroidAnnotations how to use setBearerAuth
- android I/O error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found
- Show login dialog when not authenticated yet
- Spring Data Rest supporting json and xml
- @Value annotation not resolved in a class that belongs to dependency jar
- Remove nested _embedded fields while using projections
- How to send Rest GET request that contains "#" value in url parameters?
- How to inject spring bean into Validator(hibernate)
- How to keep a variable in the URL when using Spring LocaleChangeInterceptor
Related Questions in EHCACHE
- Ehcache - Not fetching value from Cache
- Setting up RMI ehcache replication with proper multicast address setting
- How to configure Spring UserCache with EhCacheBasedUserCache?
- Cache inconsistency - Entity not always persisted in cached Collection
- Caches of all versions of a webapp deployed in parallel are shutdowned
- Maximum size of the value can be handled by EhCache
- Error with Play 2.4 Tests : The CacheManager has been shut down. It can no longer be used
- How to configure Jcache with Ecache as Provider in Spring application-context.xml?
- How to disable statistic in ehcache 2.8
- Java Cache Implementation in a web application
- SelfPopulatingCache in Ehcache 3.2
- EhCache cached object modification
- How to fix java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException when configuring EhCache for Hibernate 5.2.5
- Collection Caching with Hibernate
- How can I register JMX support for EhCache in Spring Boot?
Related Questions in EHCACHE-2
- mybatis-ehcache exception after org.ehcache 3.10.8 update
- Hibernate 5.4.25 second level cache and extending the SingletonEhcacheRegionFactory class
- Why would Spring Boot/EhCache NOT use the specified configuration file?
- SpringBoot + Hibernate + EHCache 2.X AbstractMethodError exception
- ehcache persist to disk issues
- How to create cache dynamically with spring ehcache abstraction
- 'java.lang.NoSuchMethoderror in java application which uses ehcache for cache implementation
- How to fetch all the elements in a MemoryStore of an existing cache [EHCache]
- How can I instantiate ehcache.CacheEventListener?
- EhCache 3.8.1 BootstrapCacheLoader
- Ehcache cache the data with support cluster disk storage (replication)
- ehCache is evicting the entries even though eternal is set to true
- To have 2 ehcache.xml in web and service project
- Configure Broadleaf with Terracotta
- Spring ACL with Spring Boot 3
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I was able to do it by extending org.springframework.cache.ehcache.EhCacheCacheManager and overriding getCache(String name) method. Below is the code snippet:
}
If anyone has any other better approach, please let me know.