Skip to content

Manorrock Eagle - A Key-Value Store abstraction

License

Notifications You must be signed in to change notification settings

manorrock/eagle

Manorrock Eagle

build

This project delivers you with a Key-Value Store abstraction.

Our current list of features/implementations available:

  1. Azure Blob Storage implementation
  2. Azure Cosmos DB implementation
  3. Azure File Share implementation
  4. Azure KeyVault Certificate implementation
  5. Azure KeyVault Key implementation
  6. Azure KeyVault Secret implementation
  7. Factory functionality
  8. Filesystem implementation
  9. Hazelcast implementation
  10. Manrrock Calico implementation
  11. Oracle Coherence implementation
  12. Path implementation
  13. Redis implementation

Getting started

  1. Creating the Key-Value Store
  2. Storing a value.
  3. Getting a value.
  4. Removing a value.

Creating the Key-Value Store

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);

Storing a value

The example below illustrates how to store a value.

  store.put("mykey", "myvalue".getBytes());

Getting a value

The example below illustrates how to get a value.

  String value = new String(store.get("mykey"));

Deleting a value

The example below illustrates how to delete a value.

  store.delete("mykey");

How do I contribute?

See Contributing

Our code of Conduct

See Code of Conduct