Fujiy.Util
1.0.0
See the version list below for details.
dotnet add package Fujiy.Util --version 1.0.0
NuGet\Install-Package Fujiy.Util -Version 1.0.0
<PackageReference Include="Fujiy.Util" Version="1.0.0" />
paket add Fujiy.Util --version 1.0.0
#r "nuget: Fujiy.Util, 1.0.0"
// Install Fujiy.Util as a Cake Addin #addin nuget:?package=Fujiy.Util&version=1.0.0 // Install Fujiy.Util as a Cake Tool #tool nuget:?package=Fujiy.Util&version=1.0.0
With this package you get data from cache or calling your method writing just one line of code.
Usually you do this(for ValueTypes, but Ref Types are similar):
decimal price;
var returnFromCache = Cache["CarClassGetPrice" + carId];
if(returnFromCache is decimal)
{
price = (decimal)returnFromCache;
}
else
{
price = GetPrice(carId);
Cache["CarClassGetPrice" + carId] = price;
}
With Fujiy.Util you just write:
decimal price = CacheHelper.FromCacheOrExecute(() => myObj.GetPrice(carId));
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
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.