CachedRepository.NetCore 5.0.0

dotnet add package CachedRepository.NetCore --version 5.0.0                
NuGet\Install-Package CachedRepository.NetCore -Version 5.0.0                
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="CachedRepository.NetCore" Version="5.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CachedRepository.NetCore --version 5.0.0                
#r "nuget: CachedRepository.NetCore, 5.0.0"                
#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.
// 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 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. 
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
5.0.0 378 12/12/2021
2.3.1 571 11/8/2019
2.2.0 614 3/28/2019
2.1.0 609 3/25/2019
2.0.1-pre 597 3/15/2019 2.0.1-pre is deprecated.
1.0.2-pre 618 3/1/2019 1.0.2-pre is deprecated.
1.0.1-pre 595 3/1/2019 1.0.1-pre is deprecated.

v5.0: .net5 upgrade, lazycache upgraded
     v2.3: Clear all cache added
v2.2: removed class/new restrictions from type arguments like repository(T)