Datafication.MemoryCache
1.0.9
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Datafication.MemoryCache --version 1.0.9
NuGet\Install-Package Datafication.MemoryCache -Version 1.0.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="Datafication.MemoryCache" Version="1.0.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Datafication.MemoryCache" Version="1.0.9" />
<PackageReference Include="Datafication.MemoryCache" />
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 Datafication.MemoryCache --version 1.0.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Datafication.MemoryCache, 1.0.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.
#:package Datafication.MemoryCache@1.0.9
#: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=Datafication.MemoryCache&version=1.0.9
#tool nuget:?package=Datafication.MemoryCache&version=1.0.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Datafication.MemoryCache
In-memory caching provider for DataBlock instances with configurable expiration policies.
Key Features
- DataBlock Caching: Cache DataBlock instances for fast repeated access
- Configurable Expiration: Set absolute and sliding expiration using ISO8601 duration format
- Size Management: Automatic cache size limits with compaction
- CachedDataManager Integration: Seamless integration with Datafication's data providers
- Error Handling: Optional custom error handler for cache operations
- Key Tracking: Track cached keys for selective or complete cache clearing
Installation
dotnet add package Datafication.MemoryCache
Quick Start
using Datafication.Caching.Memory;
using Datafication.Core.Caching;
// Create in-memory cache with default 100MB limit
var cache = new InMemoryCache
{
ExpirationInterval = "PT10M", // 10 minute absolute expiration
SlidingExpiration = "PT5M" // 5 minute sliding expiration
};
// Use with CachedDataManager for automatic caching
var dataManager = new CachedDataManager(dataProvider, configuration, cache);
var data = await dataManager.FetchDataAsync(configuration.Id);
// Or use directly
await cache.SetCachedData("my-key", dataBlock);
var cached = await cache.GetCachedData("my-key");
// Clear cache
await cache.ClearCache(removeOnlyExpired: false);
Documentation
For full API documentation and guides: datafication.co
License
Licensed under the Datafication SDK License Agreement.
- Free: <5 developers AND <$500K annual revenue
- Commercial license required: 5+ developers OR >$500K annual revenue
For licensing inquiries: support@datafication.co
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. 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.
-
net8.0
- Datafication.Core (>= 1.0.9)
- Microsoft.Extensions.Caching.Memory (>= 7.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Datafication.MemoryCache:
| Package | Downloads |
|---|---|
|
Datafication.Server.Core
REST API server for exposing DataBlock instances over HTTP |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|