CachedRepository.NetCore
5.0.0
dotnet add package CachedRepository.NetCore --version 5.0.0
NuGet\Install-Package CachedRepository.NetCore -Version 5.0.0
<PackageReference Include="CachedRepository.NetCore" Version="5.0.0" />
paket add CachedRepository.NetCore --version 5.0.0
#r "nuget: CachedRepository.NetCore, 5.0.0"
// Install CachedRepository.NetCore as a Cake Addin #addin nuget:?package=CachedRepository.NetCore&version=5.0.0 // Install CachedRepository.NetCore as a Cake Tool #tool nuget:?package=CachedRepository.NetCore&version=5.0.0
CachedRepository.NetCore
A thread-safe caching infrastructure for caching data objects, which should be requested only once when needed from the data source (db, service or any type of data source) Please see https://github.com/oguzhankahyaoglu/CachedRepository/blob/master/README.md for actual readme file. This is the .NetCore port of this project
To Install this package: Install-package CachedRepository.NetCore -pre
You must register LazyCache service which is a dependency for this package:
Add the LazyCache services in you aspnet core Startup.cs
// This method gets called by the runtime. Use this method to add services.
public void ConfigureServices(IServiceCollection services)
{
// already existing registrations
services.AddMvc();
services.AddDbContext<MyContext>(options => options.UseSqlServer("some db"));
....
// Register LazyCache - makes the IAppCache implementation
// CachingService available to your code
services.AddLazyCache();
//Add all repository classes for Dependency Injection as Scoped variables (default)
services.AddAllCachedRepositoriesAsServices(typeof(Application.Repositories.WorkExperienceRepo).Assembly, ServiceLifetime.Scoped);
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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. |
-
net5.0
- LazyCache (>= 2.4.0)
- LazyCache.AspNetCore (>= 2.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v5.0: .net5 upgrade, lazycache upgraded
v2.3: Clear all cache added
v2.2: removed class/new restrictions from type arguments like repository(T)