是否有任何适用于 Java 的内存/缓存解决方案允许以某种形式查询缓存中对象的特定属性?
我意识到这是一个成熟的数据库可以用来做的事情,但我希望能够拥有缓存的速度/性能和数据库的查询能力。
最佳答案
JBoss Cache 具有搜索功能。它称为 JBossCacheSearchable。来自网站:
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.
JBoss 缓存主页面:http://www.jboss.org/jbosscache/
JBossCacheSearch:http://www.jboss.org/community/docs/DOC-10286
关于java - 缓存解决方案和查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/700969/