user1654885
user1654885

Reputation: 141

Java Caching Framework

I would like to ask if anyone knows a JAVA Caching Framework with the following properties:

If there is no direct framework for this, maybe you can point me to a heuristik or any other strategy? SoftReferences/WeakReference as a solution do not work, as i can't serialize, even if I get noticed when they are garbage collected (to less memory left for serializing or even worse: file gone before serialization).

Thanks!

Upvotes: 1

Views: 5377

Answers (4)

cpurdy
cpurdy

Reputation: 1236

The JCache API is in public draft (as of August 2013), and will come with an open source reference implementation (RI). All of the major caching vendors (e.g. Oracle Coherence, ehCache) and open source projects will provide a JCache binding for their implementations, so it's worth taking a look.

See: https://github.com/jsr107

Update (11 July 2014) - The JCache API is completed and released several months ago as a standard.

If you need an implementation of JCache, the only one that I'm aware of being available today is Oracle Coherence; see: http://docs.oracle.com/middleware/1213/coherence/develop-applications/jcache_part.htm

For the sake of full disclosure, I work at Oracle. The opinions and views expressed in this post are my own, and do not necessarily reflect the opinions or views of my employer.

Upvotes: 1

kds
kds

Reputation: 28665

Check on the Redis - Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets. For more details click on Redis

Upvotes: 0

Guy Korland
Guy Korland

Reputation: 9568

(disclaimer - I work for GigaSpaces)

GigaSpaces XAP DataGrid provides a full object oriented Java caching solution.

  • Storage type - Different storage types can be assigned to different parts of the data. Also XAP supportd Extrenal Data Source integration such as DB and NoSQLto allow offloading of big data.
  • Eviction policy - Different eviction policies can be set including LRU.
  • The storage type uses Java serialization as such one can implement Externalizable and gain full control.
  • XAP is extremely efficient in using network resource and IO in general.

Upvotes: 4

NIlesh Sharma
NIlesh Sharma

Reputation: 5665

Try Ehcache . Ehcache is an open source, standards-based cache used to boost performance, offload the database and simplify scalability. Ehcache is robust, proven and full-featured and this has made it the most widely-used Java-based cache

Upvotes: 4

Related Questions