KiwiStore 1.0.1
dotnet add package KiwiStore --version 1.0.1
NuGet\Install-Package KiwiStore -Version 1.0.1
<PackageReference Include="KiwiStore" Version="1.0.1" />
<PackageVersion Include="KiwiStore" Version="1.0.1" />
<PackageReference Include="KiwiStore" />
paket add KiwiStore --version 1.0.1
#r "nuget: KiwiStore, 1.0.1"
#:package KiwiStore@1.0.1
#addin nuget:?package=KiwiStore&version=1.0.1
#tool nuget:?package=KiwiStore&version=1.0.1
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 | Versions 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. |
-
net9.0
- Microsoft.Extensions.Configuration (>= 9.0.5)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection (>= 9.0.5)
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 |