• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Ehcache TimeToLiveSecond and TimeToIdleSeconds

 
Ranch Hand
Posts: 33
Google Web Toolkit Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

1.What is the meaning of TimeToLiveSecond and TimeToIdleSecond.?
2. is they are removed, object from cache?

I tried one example.
TimeToLive = 1200
TimeToIdle = 15

I load the two object in cache first time.

i access the object after 30 second .
before accessing the object. I print the statistics of Cache and it was still show me a two object in cache.
but when i was actually access the object it was fetch from database instead of cache.

that's mean object are expired but they are still in cache still we access the object again or memory is overflow.

is the above paragraph right?

Thanks ,
Ganesh Shirsat




 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think we should not use it together. May be this is of some help : https://jira.terracotta.org/jira/browse/FORGE-270

 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
timeToLiveSecond is the time in seconds from the point of creation in the cache till it expires (regardless of how frequently it is accessed in that time)

timeToIdleSeconds is the time in seconds before an object in the cache expires if it is not accessed.

 
reply
    Bookmark Topic Watch Topic
  • New Topic