KiwiStore 1.0.1

dotnet add package KiwiStore --version 1.0.1
                    
NuGet\Install-Package KiwiStore -Version 1.0.1
                    
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="KiwiStore" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KiwiStore" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="KiwiStore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KiwiStore --version 1.0.1
                    
#r "nuget: KiwiStore, 1.0.1"
                    
#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.
#:package KiwiStore@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=KiwiStore&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=KiwiStore&version=1.0.1
                    
Install as a Cake Tool

Kiwi-Store .Net Library

Bu paket Kiwi-Store isimli deneysel key-value store uygulamasının .Net kütüphanesidir. Kiwi-Store kullanımı için Dependency Injection desteği sağlanmaktadır. Kullanımı için aşağıdaki adımları takip edebilirsiniz.

App Settings Desteği

Kiwi-Store uygulaması için appsettings.json dosyasında aşağıdaki gibi bir yapılandırma yapabilirsiniz:

{
  "KiwiStore": {
	"Host": "127.0.0.1",
	"Port":5555
  }
}

Dependency Injection Desteği

Kiwi-Store uygulamasını DI tarafında aşaıdaki farklı şekillerde kullanabilirsiniz:

builder.Services.AddKiwiStore(endpoint =>
{
    endpoint = new KiwiEndpoint("localhost", 5555);
});

veya

builder.Services.AddKiwiStore(builder.Configuration);

Kullanım

Kiwi-Store paketini herhangibir bileşene enjekte ettikten sonra aşağıdaki gibi kullanabilirsiniz:

[ApiController]
[Route("[controller]")]
public class ProductController : ControllerBase
{
    private readonly IKiwiStoreClient _store;

    public ProductController(IKiwiStoreClient store)
    {
        _store = store;
    }

    [HttpGet("{key}")]
    public async Task<string> Get(string key)
    {
        return await _store.GetAsync(key);
    }

    [HttpPost("{key}")]
    public async Task<IActionResult> Set(string key, [FromBody] string value)
    {
        await _store.SetAsync(key, value);
        return Ok();
    }
}
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 152 6/2/2025