Questions tagged [grails-cache]

The Grails Cache plugin provides powerful and easy to use caching functionality to Grails applications and plugins. The plugin makes significant use of the caching abstraction provided by Spring 3.1.

8 questions
4
votes
1 answer

Unable to resolve class grails.plugin.cache.Cacheable after Grails update

I'm upgrading Grails from 2.1.0 to 2.3.7. I have a Maven-based project. For 2.1.0 the command mvn clean install runs without error. For 2.3.7 it gives: Compilation error: startup…
nuoritoveri
  • 2,494
  • 1
  • 24
  • 28
2
votes
1 answer

grails-cache-ehcache plugin in Grails app for caching using @Cacheable annotations

my situation is that I have Grails 2.1.2 application and want to introduce method level caching using cache plugin and cache-ehcache plugin as an implementation. My cache is configured to be in memory like this: grails.cache.config = { cache…
lukelazarovic
  • 1,510
  • 11
  • 19
0
votes
0 answers

How to fix RemoteException in server regarding ehcache cache replication? (Tomcat 8.5.84 | Grails 2.4.5 | grails-cache 1.1.8 | grails-cache-ehcache

I have a Grails 2.4.5 application deployed on a server with Tomcat 8.5.84 and JDK_1.8.0_341. I have an issue with the cache replication from one server (node 2) to the other (node 1). When a new deployment is done, sometimes the cache replicates…
0
votes
0 answers

Grails 2.4.5 | Groovy 2.3.11 | grails-cache 1.1.8 | grails-cache-ehcache 1.0.101 |Tomcat 8.5.84 | JDK 1.8.0_341 | Cache Replication not working

I have a Grails App (Grails 2.4.5 | Groovy 2.3.11 | grails-cache 1.1.8 | grails-cache-ehcache 1.0.101) that is deployed in a dev environment on two servers (Tomcat 8.5.84 | JDK 1.8.0_341). I do not have access to the server configurations. I'm…
0
votes
1 answer

Grails 2.4.5 Error net.sf.ehcache.CacheException: javax.management.MalformedObjectNameException Invalid character ':' in value part of property

I get this error below when running a Grails 2.4.5 project (full stacktrace) Error | 2021-11-28 01:27:44,302 [localhost-startStop-1] ERROR context.GrailsContextLoaderListener - Error initializing the application: Error creating bean with name…
0
votes
1 answer

Using the Grails Cache Plugin on Normal Spring Service Bean

i have some standard Spring @Service classes in a separate jar lib that use the standard @Cacheable Spring annotation, in a Spring boot project i declare the dependency, configure a CacheManager and just works! i try to do the same in a Grails 3.1…
0
votes
1 answer

Using the Grails Cache Plugin Annotation on Normal Groovy Classes

Is it possible to use the Grails Cache plugin's annotations (ie: @Cacheable) on methods in normal Groovy classes? The plugin's documentation doesn't mention anything about normal Groovy classes and based on my own tests the annotations have no…
Harry Muscle
  • 2,247
  • 4
  • 38
  • 62
0
votes
1 answer

Grails - Full Page Caching

I'm putting up a small website where only one page needs information from a database, and the rest of the pages are static. How can I implement full page caching for those static pages while still using the default fragmented cache system for the…
Anonymous1
  • 3,877
  • 3
  • 28
  • 42