此内容没有您所选择的语言版本。
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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Procedure 13.5. To configure LevelDB Cache Store:
- Obtain the
leveldbjni-all-1.7.jar
file from https://github.com/fusesource/leveldbjni and copy it to themodules/system/layers/base/org/fusesource/leveldbjni-all/main
directory. - Modify the
module.xml
file 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.xml
to 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.