MVCCaching.Kentico 13.0.0

MVC Caching implementation for Kentico Xperience 13 MVC (Full framework, not core).

Install-Package MVCCaching.Kentico -Version 13.0.0
dotnet add package MVCCaching.Kentico --version 13.0.0
<PackageReference Include="MVCCaching.Kentico" Version="13.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MVCCaching.Kentico --version 13.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MVCCaching.Kentico, 13.0.0"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

MVC Caching

MVC Caching for Kentico MVC 13 (.Net Framework, NOT .net core!), extending the DancingGoat Caching Implementation to allow for easy Caching both of Repository calls, database calls, and Output Caching. Sets up and leverages Kentico's cache dependencies.

Installation for Kentico MVC Site (Quick)

  1. Install the MVCCaching.Kentico NuGet Package to your MVC Site
  2. Add this to your Global.asax.cs's Application_Start
       #region "AutoFac Cache and other dependency injections"

            // Register AutoFac Items
            var autofacBuilder = new ContainerBuilder();

            // Register Dependencies for Cache, pass in any assemblies you wish to hook up
            DependencyResolverConfig.Register(autofacBuilder, new Assembly[] { typeof(ApplicationConfig).Assembly });

            // Set Autofac Dependency resolver to the builder
            DependencyResolver.SetResolver(new AutofacDependencyResolver(autofacBuilder.Build()));

            #endregion
  1. Optionally create an override the GetVaryByCustomString method to your Application (see the sample Globa.asax.cs GetVaryByCustomString method).

Usage

  1. See Documentation.md for full documentation

MVC Caching

MVC Caching for Kentico MVC 13 (.Net Framework, NOT .net core!), extending the DancingGoat Caching Implementation to allow for easy Caching both of Repository calls, database calls, and Output Caching. Sets up and leverages Kentico's cache dependencies.

Installation for Kentico MVC Site (Quick)

  1. Install the MVCCaching.Kentico NuGet Package to your MVC Site
  2. Add this to your Global.asax.cs's Application_Start
       #region "AutoFac Cache and other dependency injections"

            // Register AutoFac Items
            var autofacBuilder = new ContainerBuilder();

            // Register Dependencies for Cache, pass in any assemblies you wish to hook up
            DependencyResolverConfig.Register(autofacBuilder, new Assembly[] { typeof(ApplicationConfig).Assembly });

            // Set Autofac Dependency resolver to the builder
            DependencyResolver.SetResolver(new AutofacDependencyResolver(autofacBuilder.Build()));

            #endregion
  1. Optionally create an override the GetVaryByCustomString method to your Application (see the sample Globa.asax.cs GetVaryByCustomString method).

Usage

  1. See Documentation.md for full documentation

Release Notes

Upgraded to Xperience 13.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
13.0.0 108 11/13/2020
12.29.5 351 7/9/2020
12.29.4 323 5/29/2020
12.29.3 388 4/9/2020
12.29.2 193 3/30/2020
12.29.1 318 3/9/2020
12.29.0 486 9/24/2019
12.0.29 179 9/24/2019
1.0.0 200 9/24/2019