Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSCache vs. EHCache

Tags:

Never used a cache like this before. The problem is that I want to load 500,000 + records out of a database and do some selecting/filtering wicked fast.

I'm thinking about using a cache, and preliminarily found EHCache and OSCache, any opinions?

like image 998
bmw0128 Avatar asked Sep 18 '08 22:09

bmw0128


People also ask

What is the difference between Redis and Ehcache?

You can think Redis as a shared data structure, while Ehcache is a memory block storing serialized data objects. This is the main difference. Redis as a shared data structure means you can put some predefined data structure (such as String, List, Set etc) in one language and retrieve it in another language.

Is Ehcache good?

EhCache is a widely used, pure Java cache that can be easily integrated with most popular Java frameworks, such as Spring and Hibernate. It is often considered to be the most convenient choice for Java applications since it can be integrated into projects easily.

What is Ehcache library used for?

JAVA'S MOST WIDELY-USED CACHE Ehcache is an open source, standards-based cache that boosts performance, offloads your database, and simplifies scalability. It's the most widely-used Java-based cache because it's robust, proven, full-featured, and integrates with other popular libraries and frameworks.

What does Ehcache stand for?

It doesn't really stand for anything. It makes the name a palindrome, so that "Ehcache" reads the same both backwards and forwards, and also evokes the fact that ehcache relies heavily on doubly-linked lists, a data structure that can be traversed both backwards and forwards.


1 Answers

Judging by their releases page, OSCache has not been actively maintained since 2007. This is not a good thing. EhCache, on the other hand, is under constant development. For that reason alone, I would choose EhCache.

Edit Nov 2013: OSCache, like the rest of OpenSymphony, is dead.

like image 152
skaffman Avatar answered Sep 16 '22 15:09

skaffman