简体   繁体   English

如何使用ehcache或JCS作为队列或流缓存?

[英]How to use ehcache or JCS as a queue or streaming caching?

I find that most of the features provided by ehCache are reasonably performing put and get by key..But I just want to use a caching to add and peek record as a queue(we need caching,much likes a buffer,because the data may be big..).How to use ehcache or JCS in this way?or any other suggested alternatives? 我发现ehCache提供的大多数功能都可以合理地执行key的放置和获取。。但是我只想使用缓存来添加和查看记录作为队列(我们需要进行缓存,就像缓冲区一样,因为数据可能很大。)。如何以这种方式使用ehcache或JCS?或任何其他建议的替代方法? Thanks! 谢谢!

Based on your description it sounds like you would want to use JMS instead. 根据您的描述,听起来您想改用JMS。 Its supporting distributed transactions and provides publish/subscribe mechanisms. 它支持分布式事务,并提供发布/订阅机制。

Some of the JMS implementations: 一些JMS实现:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM