Isoftforge.Apps.Client.Cache
1.0.1
dotnet add package Isoftforge.Apps.Client.Cache --version 1.0.1
NuGet\Install-Package Isoftforge.Apps.Client.Cache -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="Isoftforge.Apps.Client.Cache" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Isoftforge.Apps.Client.Cache" Version="1.0.1" />
<PackageReference Include="Isoftforge.Apps.Client.Cache" />
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 Isoftforge.Apps.Client.Cache --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Isoftforge.Apps.Client.Cache, 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 Isoftforge.Apps.Client.Cache@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=Isoftforge.Apps.Client.Cache&version=1.0.1
#tool nuget:?package=Isoftforge.Apps.Client.Cache&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Isoftforge.Apps.Client.Cache
.NET client for the isoftforge Cache satellite API.
Configuration
var client = CacheClient.Create(
baseUrl: "https://apps-api.isoftforge.it/api/cache",
apiKey: "ifc_your-api-key");
Or with dependency injection:
services.AddCacheClient(configuration.GetSection("Cache"));
{
"Cache": {
"BaseUrl": "https://apps-api.isoftforge.it/api/cache",
"ApiKey": "ifc_your-api-key"
}
}
Create API keys in the portal under Cache → Credentials or the organization credentials page.
The API key identifies your organization and resolves the cache environment automatically (the only active environment, or the oldest when several exist). For HTTP/cURL you can still send optional header X-Cache-Environment to target a specific environment slug.
Usage
var validation = await client.ValidateCredentialsAsync();
if (!validation.Valid) throw new InvalidOperationException(validation.Error);
await client.SetAsync("session:1", json, ttlSeconds: 900);
var entry = await client.GetAsync("session:1");
await client.SetAsync("session:1", updatedJson, ttlSeconds: 1800);
await client.DeleteAsync("session:1");
var keys = await client.ListKeysAsync(new CacheKeyListQuery { Prefix = "session:", Limit = 100 });
var ttl = await client.GetTtlAsync("session:1");
Authentication
Every request sends X-API-Key only.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Http (>= 10.0.8)
- Microsoft.Extensions.Options (>= 10.0.8)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.