Caching Solutions and Queries

Are there any memory / caching solutions for java that allow me to get a request form for certain attributes of objects in the cache?

I understand that a full-blown database will be used for this, but I want to have cache speed / performance with the Querying database ability.

+5
source share
7 answers

Currently, the answer needs to be updated to Infinispan , the successor to JBoss Cache and significantly improved search technology.

+3
source

JBoss Cache has a search function. It is called JBossCacheSearchable. On the site:

JBoss Hibernate .

, JBoss. Hibernate Search , . Apache Lucene .

JBoss: http://www.jboss.org/jbosscache/

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

+4

HSQLDB, , . , . , .

+2

db4o Java. , Java-:

List students = database.query( new Predicate(){
      public boolean match(Student student){
        return student.getAge() < 20
          && student.getGrade().equals(gradeA);}})

( ).

+1

- Lucene RAMDirectory , . , , Lucene.

, , ( ) .

Lucene , , .

0

:

http://casperdatasets.googlecode.com

it is a data set technology. it supports tabular data (either from a database, or constructed in code), and then you can create queries and filters for a dataset (and sort), all in memory. Its fast and easy to use. MOST IMPORTANT, you can query against ANY column or attribute in a dataset.

0
source

All Articles