KeystoreDB 1.6.9
dotnet add package KeystoreDB --version 1.6.9
NuGet\Install-Package KeystoreDB -Version 1.6.9
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KeystoreDB" Version="1.6.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KeystoreDB --version 1.6.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KeystoreDB, 1.6.9"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install KeystoreDB as a Cake Addin #addin nuget:?package=KeystoreDB&version=1.6.9 // Install KeystoreDB as a Cake Tool #tool nuget:?package=KeystoreDB&version=1.6.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
KeystoreDB
KeystoreDB is a lightweight, secure NoSQL persistent database engine implemented in C#. It provides a simple key-value store with encryption support.
Features
- Simple key-value store
- AES encryption
- Persistent storage
- Thread safe
- Clean Architecture design
- 100% Code Coverage
Project Structure
The project is organized using Clean Architecture principles:
KeystoreDB.Core
: Contains the core business logic and interfacesKeystoreDB
: Main project which implements the interfaces defined in the Core projectKeystoreDB.Core.Tests
: Contains unit tests for the Core projectKeystoreDB.Tests
: Contains unit tests for the Main project
Getting Started
- Clone the repository
- Open the solution in Visual Studio or your preferred IDE
- Build the solution
- Run the tests to ensure everything is working correctly
Usage
Here's a basic example of how to use KeystoreDB:
var dbPath = "path/to/database";
var password = "your_secure_password";
var encryptionService = new EncryptionService();
var fileService = new FileService();
var logger = new ConsoleLogger(); // Add this line
var databaseService = new DatabaseService(dbPath, password, logger);
databaseService.Load(); // Load the database from the file if it exists, or initialize an empty database if not found
// Set a value
databaseService.Set("myKey", "myValue");
logger.Log("Value set for myKey");
// Get a value
string value = databaseService.Get("myKey");
logger.Log($"Retrieved value for myKey: {value}");
// Delete a value
bool deleted = databaseService.Delete("myKey");
logger.Log($"Deleted myKey: {deleted}");
// Save changes
databaseService.Save();
logger.Log("Database changes saved");
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.