Blogs Using MongoDB as a cache store

Using MongoDB as a cache store

With the 5.3 release, there is a brand new feature. I’m glad to announce that you will be able to use MongoDB as a cache store.

For those who don’t know MongoDB, it’s an open-source document oriented NoSQL database developped by 10Gen. You can more information about it on http://www.mongodb.org/.

The question you have right now, it probably, how to use it cool cache store ? Simple, as for the other cache store you have to add a loader in your Infinispan configuration file.

Here is an exemple:

If you prefer the programmatic API:

For more information about the configuration possibilities (default values, options, etc) , you can refer to the documentation page

Cheers, Guillaume Hibernate OGM & Infinispan contributor Blog / @g_scheibel

Get it, Use it, Ask us!

We’re hard at work on new features, improvements and fixes, so watch this space for more announcements!

Please, download and test the latest release.

The source code is hosted on GitHub. If you need to report a bug or request a new feature, look for a similar one on our JIRA issues tracker. If you don’t find any, create a new issue.

If you have questions, are experiencing a bug or want advice on using Infinispan, you can use GitHub discussions. We will do our best to answer you as soon as we can.

The Infinispan community uses Zulip for real-time communications. Join us using either a web-browser or a dedicated application on the Infinispan chat.

Infinispan

Boosting the performace since 2009.