Config.groovy ==>
hi friends,
I want to cache my controller action results cached for 15 min time with grails Eh- cache plugin. caching works good but TTL(timeToLiveSeconds) is not working
it is cahced for ever.
here is my grails project details :
my Controller action with @Cacheable annotation.==>
grails.cache.config = {
cache{
name 'userprojects'
eternal false
overflowToDisk false
diskPersistent false
timeToIdleSeconds '120'
timeToLiveSeconds '120'
memoryStoreEvictionPolicy 'LRU'
}
}
my BuildConfig.grrovy file plugin section ==>
@Cacheable("userprojects")
def userProjects() {
-----------------
}
plugins{
----------------------------Is iam missing anything ??
compile ":cache-ehcache:1.0.0"
compile ':cache:1.0.1'
}
thanks & regards
Gangadhar M
--
---
You received this message because you are subscribed to the Google Groups "Indian Groovy & Grails User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iggug+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.