13.5. LevelDB Cache Store
LevelDB is a key-value storage engine that provides an ordered mapping from string keys to string values.
The LevelDB Cache Store uses two filesystem directories. Each directory is configured for a LevelDB database. One directory stores the non-expired data and the second directory stores the expired keys before a purge.
13.5.1. Configuring LevelDB Cache Store Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Procedure 13.5. To configure LevelDB Cache Store:
- Obtain the
leveldbjni-all-1.7.jarfile from https://github.com/fusesource/leveldbjni and copy it to themodules/system/layers/base/org/fusesource/leveldbjni-all/maindirectory. - Modify the
module.xmlfile to include JAR files in the resources:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Add the following to a cache definition in
standalone.xmlto configure the database:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Note
The LevelDB library and JNI connector are not part of the JBoss Data Grid 6.2 distribution. To use the tested version, add the file
leveldbjni-all-1.7.jar from https://github.com/fusesource/leveldbjni to your JBoss Data Grid deployment.