Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cache expiration after 3 days  RSS feed

 
smitha mukherjee
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!