• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Bear Bibeault
  • paul wheaton
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Mikalai Zaikin
  • Piet Souris
Bartenders:

Cache expiration after 3 days

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I need to Cache records while saving to database. In current application Hibernate 3 is used.

1. Is it possible to Cache only few Columns of Entity, instead of all columns; reason is few columns are blobs and not needed in cache.
2. Is it possible to set expiration of Entity after few days, I meant, if need to set expiration after 3 days, record can be auto removed from cache?

I have started looking into cache process (tutorials) but not sure if above 2 needs can be fulfilled.

I would highly appreciate if someone can share if above are possible, then I would continue to explore on this process.

Thanks.
 
Nothing up my sleeve ... and ... presto! A tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic