Re: [IGGUG:431] grails(2.2.1) eh-cache plugin's(1.0.0) TTL is not working for me.

57 views
Skip to first unread message

Nibin Varghese

unread,
May 27, 2013, 11:26:24 PM5/27/13
to ig...@googlegroups.com


On Mon, May 27, 2013 at 2:21 PM, gangadhar mamillapalli <gangadh...@gmail.com> wrote:

      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 :
 
    Config.groovy ==>


grails.cache.config = {
           
    cache{
        name 'userprojects'       
        eternal false
        overflowToDisk false
        diskPersistent false
        timeToIdleSeconds '120'
        timeToLiveSeconds '120'
        memoryStoreEvictionPolicy 'LRU'
    }
   
 }

 my Controller action with @Cacheable annotation.==>


       @Cacheable("userprojects")   
       def userProjects()  {
        -----------------
       }

my  BuildConfig.grrovy file  plugin section ==>
      
       plugins{
           ----------------------------

           compile ":cache-ehcache:1.0.0"

           compile ':cache:1.0.1'

       }
           
   Is iam missing anything ??

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.
 
 

Reply all
Reply to author
Forward
0 new messages