• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ehcache and lucene comparison

 
Maulin Rathod
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are working design of new project where we need to decided framework for caching. We are looking at ehcache and lucene for caching. We need decide whether to use lucene or ehcache for our caching requirement? What are advantage/disadvantage of using ehcache or lucene for caching?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, ehcache is a caching implementation Lucene is an IR tool, so they are impossible to compare with each other because they do different things. However, if its caching you want, I would recommend going for the one that offers caching and not the one that doesn't.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lucene isn't a caching solution per se - it's an API for implementing search applications. It's fast, but most likely not faster than a "proper" cache implementation (like ehcache). Or are you asking about using it in-memory via RAMDirectory or InstantiatedIndex?
 
Tim Holloway
Saloon Keeper
Posts: 18302
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, ehcache can be used as backing for Lucene. So it's not necessarily "either/or".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic