This project delivers you with a Key-Value Store abstraction.
Our current list of features/implementations available:
- Azure Blob Storage implementation
- Azure Cosmos DB implementation
- Azure File Share implementation
- Azure KeyVault Certificate implementation
- Azure KeyVault Key implementation
- Azure KeyVault Secret implementation
- Factory functionality
- Filesystem implementation
- Hazelcast implementation
- Manrrock Calico implementation
- Oracle Coherence implementation
- Path implementation
- Redis implementation
- Creating the Key-Value Store
- Storing a value.
- Getting a value.
- Removing a value.
Pick one of the Key-Value Store implementations you want to use above.
If you would have taken the Filesystem implementation the code to create the Key-Value Store would look like the code below.
File baseDirectory = new File("mybasedir");
FilesystemKeyValueStore<String, byte[]> store = new FilesystemKeyValueStore<>(baseDirectory);
The example below illustrates how to store a value.
store.put("mykey", "myvalue".getBytes());
The example below illustrates how to get a value.
String value = new String(store.get("mykey"));
The example below illustrates how to delete a value.
store.delete("mykey");
See Contributing
See Code of Conduct