java - 缓存解决方案和查询

标签 java caching jakarta-ee jboss glassfish

是否有任何适用于 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/

相关文章:

Java解析包含整数和多个分隔符的字符串

java - Maven 版本 : Is there a way to prevent a module to be uploaded to Nexus?

java - 如何在 Spring Boot 应用程序中注册 JavaEE 过滤器?

java - 如何检查来自服务器的数据是序列化数组还是只是一个简单的字符串?

java - 与 COMPAS 共享磁盘

ios - UICollectionView 在加载 facebook 视频 URL 时卡住

caching - Hadoop 分布式缓存大小的限制是多少?

asp.net - 多线程环境下的文件访问策略(Web App)

java - 在 JPA 中重用持久性上下文

mysql - 删除父级时 Hibernate/MySQL 级联错误