If you want to use the Path API as a Key-Value store you will need to do the following.
- Add the dependency.
- Create the PathKeyValueStore.
To start add the following dependency.
<dependency>
<groupId>com.manorrock.eagle</groupId>
<artifactId>eagle-path</artifactId>
<version>MY_VERSION</version>
</dependency>
Where MY_VERSION should be replaced wit the version you want to use.
The following snippet shows you how to create the PathKeyValueStore
Path basePath = new File("mybasedir").toPath();
PathKeyValueStore store = new PathKeyValueStore(basePath);
Then the rest is using the KeyValueStore APIs.
The Path implementation uses Path for the underlying key and byte[] for the underlying value type.