Simple Key-Value Store. Built on top of LMDB.
Using maven add the following in your pom.xml
<dependencies>
<dependency>
<groupId>com.github.vh</groupId>
<artifactId>skvs</artifactId>
<version>1.0.3</version>
</dependency>
</dependencies>
If you are using gradle add the following in your gradle.build
compile 'com.github.vh:skvs:1.0.3'
To create a store use StoreFactory
:
Store store = StoreFactory.createStore("mydb");
store.getString("key");
store.getInt("key");
store.getLong("key");
store.getFloat("key");
store.getDouble("key");
store.getBoolean("key");
store.getBytes("key");
// or
store.get("key", SerializableType.class);
store.put("key", serializableValue);
store.put("prefix:key1", 1);
store.put("prefix:key2", 2);
List<Map.Entry<String, Integer>> col = store.enumerate("prefix:", Integer.class);