KY.CacheUtil
1.0.2
dotnet add package KY.CacheUtil --version 1.0.2
NuGet\Install-Package KY.CacheUtil -Version 1.0.2
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="KY.CacheUtil" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KY.CacheUtil --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KY.CacheUtil, 1.0.2"
#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 KY.CacheUtil as a Cake Addin #addin nuget:?package=KY.CacheUtil&version=1.0.2 // Install KY.CacheUtil as a Cake Tool #tool nuget:?package=KY.CacheUtil&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
This class helps you make cached method calls, and ensures the delegate is called only once in multithreaded environments.
Useful for loading resources from external urls, making web service calls, running expensive calculations, etc.
Sample usage:
var result = cm.CachedCall("my_key", 30, delegate() {
return ExpensiveAndTimeConsumingMethodWithParams(...);
});
or
var result = cm.CachedCall("my_key", 30, ExpensiveAndTimeConsumingMethod);
Product | Versions 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.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.2 | 385 | 11/6/2014 |