Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.5 KB

README.md

File metadata and controls

57 lines (41 loc) · 1.5 KB

Manorrock Eagle

Azure Blob Storage implementation

If you want to use Azure Blob Storage as a Key-Value store you will need to do the following.

  1. Add the dependency.
  2. Create the BlobKeyValueStore.

Add the dependency

To start add the following dependency.

    <dependency>
        <groupId>com.manorrock.eagle.azure</groupId>
        <artifactId>eagle-azure-blob</artifactId>
        <version>MY_VERSION</version>
    </dependency>

Where MY_VERSION should be replaced wit the version you want to use.

Create the BlobKeyValueStore

The following code snippet will get your started.

    BlobKeyValueStore store = new BlobKeyValueStore<>(
        "endpoint",
        "containerName"
    );

Then the rest is using the KeyValueStore APIs.

Overriding the Azure Blob Storage library dependency

Beneath the covers the Azure Blob Storage implementation uses Azure Blob Storage library. If your own project uses the Azure Blob Storage library, or any of its dependencies you should be aware of this. Note the version of the Azure Blob Storage library dependency that this implementation uses can be found in the pom.xml file of this module.

Factory properties

If you want to create the BlobKeyValueStore using the KeyValueStoreFactory use the following properties.

Key Value
className com.manorrock.eagle.azure.blob.BlobKeyValueStore
endpoint the endpoint
containerName the container name
accountName the account name
accountKey the account key