Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Caching solutions and Querying

Are there any in-memory/caching solutions for java that allow for a form of Querying for specific attributes of objects in the Cache?

I realize this is something that a full blown database would be used for, but I want to be able to have the speed/performance of a cache with the Querying ability of a database.

like image 375
mainstringargs Avatar asked Mar 31 '09 13:03

mainstringargs


3 Answers

JBoss Cache has search functionality. It's called JBossCacheSearchable. From the site:

This is the integration package between JBoss Cache and Hibernate Search.

The goal is to add search capabilities to JBoss Cache. We achieve this by using Hibernate Search to index user objects as they are added to the cache and modified. The cache is queried by passing in a valid Apache Lucene query which is then used to search through the indexes and retrieve matching objects from the cache.

Main JBoss Cache page: http://www.jboss.org/jbosscache/

JBossCacheSearch: http://www.jboss.org/community/docs/DOC-10286

like image 89
Steve Claridge Avatar answered Oct 26 '22 22:10

Steve Claridge


Nowadays the answer should be updated to Infinispan, the successor of JBoss Cache and having much improved Search technology.

like image 36
Sanne Avatar answered Oct 26 '22 23:10

Sanne


Terracotta or GBeans or POJOCache

like image 36
John Ellinwood Avatar answered Oct 26 '22 23:10

John Ellinwood