LiteX.Storage.Kvpbase
7.0.0
DEPRECATED (drops support for this package)
This client library enables working with the Kvpbase Blob service for storing binary/blob data.
A very simple Wrapper for the Kvpbase to handle bucket instantiations.
A library to abstract storing files to Kvpbase.
Wrapper library is just written for the purpose to bring a new level of ease to the developers who deal with Kvpbase integration with your system.
(Signed URL and Update Properties and many other methods are not implemented)
LiteXStorage is simple yet powerful and very high-performance storage mechanism and incorporating both synchronous and asynchronous usage with some advanced usages of cloud storage which can help us to handle storage more easier!
Provide Storage service for any type of application (.NET Core, .NET Standard).
Very simple yet advanced configuration. Minimal (one line) code configuration is required.
It provides possibility to upload files, upload the content of a folder inclusively subfolders, enumerate buckets/container, enumerate the content of a specific 'subfolder', delete buckets/container and delete files from specific subfolders.
See the version list below for details.
Install-Package LiteX.Storage.Kvpbase -Version 7.0.0
dotnet add package LiteX.Storage.Kvpbase --version 7.0.0
<PackageReference Include="LiteX.Storage.Kvpbase" Version="7.0.0" />
paket add LiteX.Storage.Kvpbase --version 7.0.0
#r "nuget: LiteX.Storage.Kvpbase, 7.0.0"
// Install LiteX.Storage.Kvpbase as a Cake Addin #addin nuget:?package=LiteX.Storage.Kvpbase&version=7.0.0 // Install LiteX.Storage.Kvpbase as a Cake Tool #tool nuget:?package=LiteX.Storage.Kvpbase&version=7.0.0
LiteX Kvpbase Storage
LiteX.Storage.Kvpbase is a storage library which is based on LiteX.Storage.Core and Kvpbase API.
This client library enables working with the Kvpbase Storage Blob service for storing binary/blob data.
A very simple Wrapper for the Kvpbase Storage to handle container instantiations.
A library to abstract storing files to Kvpbase. Small library for manage storage with Kvpbase. A quick setup for Kvpbase.
Wrapper library is just written for the purpose to bring a new level of ease to the developers who deal with Kvpbase integration with your system.
Basic Usage
Install the package
Install via Nuget.
PM> Install-Package LiteX.Storage.Kvpbase
AppSettings
{
//LiteX Kvpbase Storage settings
"KvpbaseBlobConfig": {
"KvpbaseApiKey": "--- REPLACE WITH YOUR KVPBASE API KEY ---",
"KvpbaseContainer": "--- REPLACE WITH YOUR KVPBASE CONTAINER ---",
"KvpbaseEndpoint": "--- REPLACE WITH YOUR KVPBASE END POINT ---",
"KvpbaseUserGuid": "--- REPLACE WITH YOUR KVPBASE USERGUID ---",
"EnableLogging": true
}
}
Configure Startup Class
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
// 1. Use default configuration from appsettings.json's 'KvpbaseBlobConfig'
services.AddLiteXKvpbaseBlobService();
//OR
// 2. Load configuration settings using options.
services.AddLiteXKvpbaseBlobService(option =>
{
option.KvpbaseApiKey = "";
option.KvpbaseEndpoint = "";
option.KvpbaseContainer = "";
option.KvpbaseUserGuid = "";
option.EnableLogging = true;
});
//OR
// 3. Load configuration settings on your own.
// (e.g. appsettings, database, hardcoded)
var kvpbaseBlobConfig = new KvpbaseBlobConfig()
{
KvpbaseApiKey = "",
KvpbaseEndpoint = "",
KvpbaseContainer = "",
KvpbaseUserGuid = "",
EnableLogging = true
};
services.AddLiteXKvpbaseBlobService(kvpbaseBlobConfig);
// add logging (optional)
services.AddLiteXLogging();
}
}
Sample Usage Example
Same for all providers.
For more helpful information about LiteX Storage, Please click here.
LiteX Kvpbase Storage
LiteX.Storage.Kvpbase is a storage library which is based on LiteX.Storage.Core and Kvpbase API.
This client library enables working with the Kvpbase Storage Blob service for storing binary/blob data.
A very simple Wrapper for the Kvpbase Storage to handle container instantiations.
A library to abstract storing files to Kvpbase. Small library for manage storage with Kvpbase. A quick setup for Kvpbase.
Wrapper library is just written for the purpose to bring a new level of ease to the developers who deal with Kvpbase integration with your system.
Basic Usage
Install the package
Install via Nuget.
PM> Install-Package LiteX.Storage.Kvpbase
AppSettings
{
//LiteX Kvpbase Storage settings
"KvpbaseBlobConfig": {
"KvpbaseApiKey": "--- REPLACE WITH YOUR KVPBASE API KEY ---",
"KvpbaseContainer": "--- REPLACE WITH YOUR KVPBASE CONTAINER ---",
"KvpbaseEndpoint": "--- REPLACE WITH YOUR KVPBASE END POINT ---",
"KvpbaseUserGuid": "--- REPLACE WITH YOUR KVPBASE USERGUID ---",
"EnableLogging": true
}
}
Configure Startup Class
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
// 1. Use default configuration from appsettings.json's 'KvpbaseBlobConfig'
services.AddLiteXKvpbaseBlobService();
//OR
// 2. Load configuration settings using options.
services.AddLiteXKvpbaseBlobService(option =>
{
option.KvpbaseApiKey = "";
option.KvpbaseEndpoint = "";
option.KvpbaseContainer = "";
option.KvpbaseUserGuid = "";
option.EnableLogging = true;
});
//OR
// 3. Load configuration settings on your own.
// (e.g. appsettings, database, hardcoded)
var kvpbaseBlobConfig = new KvpbaseBlobConfig()
{
KvpbaseApiKey = "",
KvpbaseEndpoint = "",
KvpbaseContainer = "",
KvpbaseUserGuid = "",
EnableLogging = true
};
services.AddLiteXKvpbaseBlobService(kvpbaseBlobConfig);
// add logging (optional)
services.AddLiteXLogging();
}
}
Sample Usage Example
Same for all providers.
For more helpful information about LiteX Storage, Please click here.
Release Notes
Multiple provider support (using provider factory)
Performance improvement in provider initialization stage.
Update libraries to latest version.
Code breaking changes - Rename default configuration settings in appsettings.json (new settings - KvpbaseStorageConfig)
Code breaking changes - Core service name changed to KvpbaseStorageService (Read ducument on GitHub)
Bug fixed - Could not load file or assembly 'LiteX Storage Core'
Last release notes,
Make some sync methods Obsolete.
New - Delete directory/folder from container/bucket
New - Get Container/Bucket size in bytes
New - Get number to total items/files in Container/Bucket
New - Added new method - Get all containers/buckets
New - Added new method - Delete all containers/buckets
Dependencies
-
.NETStandard 2.0
- KvpbaseSDK (>= 2.0.0)
- LiteX.Log (>= 2.0.0)
- LiteX.Storage.Core (>= 7.0.0)
- Microsoft.Extensions.Configuration (>= 2.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 2.0.0)
- Microsoft.Extensions.DependencyInjection (>= 2.0.0)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.