QuickLazyCache.Infrastructure 1.0.0

dotnet add package QuickLazyCache.Infrastructure --version 1.0.0                
NuGet\Install-Package QuickLazyCache.Infrastructure -Version 1.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="QuickLazyCache.Infrastructure" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add QuickLazyCache.Infrastructure --version 1.0.0                
#r "nuget: QuickLazyCache.Infrastructure, 1.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 QuickLazyCache.Infrastructure as a Cake Addin
#addin nuget:?package=QuickLazyCache.Infrastructure&version=1.0.0

// Install QuickLazyCache.Infrastructure as a Cake Tool
#tool nuget:?package=QuickLazyCache.Infrastructure&version=1.0.0                

QuickLazyCache

Description

This is package purpose of quickly caching and manage.

Install

You can use nuget package for download however have to install both packages!

Install-Package System.Runtime.Caching -Version 4.5.0

Install-Package QuickLazyCache.Infrastructure -Version 1.0.0

How it's working


When cache manager calling via method of Initialize it's taking 2 required parameters from who is caller then creating auto cache-key for add to "MemoryBaseCache"

Usage

  public class SampleObject
    {
        public static List<string> GetItemsByCache()
        {
            //Timespan is optional parameter. It's gonna keep up to default time if you are not pass this parameter.
            return CacheManager.Initialize(typeof(SampleObject), () => GetItemsByDb(), new TimeSpan(0, 2, 0));
        }

        private static List<string> GetItemsByDb()
        {
            return new List<string>()
            {
                "Item1",
                "Item2",
                "Item3"
            };
        }
    }
Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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
1.0.0 1,180 7/3/2018