TinyCache 1.0.2
See the version list below for details.
dotnet add package TinyCache --version 1.0.2
NuGet\Install-Package TinyCache -Version 1.0.2
<PackageReference Include="TinyCache" Version="1.0.2" />
paket add TinyCache --version 1.0.2
#r "nuget: TinyCache, 1.0.2"
// Install TinyCache as a Cake Addin
#addin nuget:?package=TinyCache&version=1.0.2
// Install TinyCache as a Cake Tool
#tool nuget:?package=TinyCache&version=1.0.2
TinyCache
Example
Create a cache storage, in memory cache will be the default.
var store = new XamarinPropertyStorage();
Set cache storage TinyCache.TinyCache.SetCacheStore(store);
Preload cache if needed: store.LoadFromString(CacheResources.PreloadData.JsonData);
Handle errors TinyCache.TinyCache.OnError += (sender, e) ⇒ { ShowError(e); };
Set a base policy that will be used when no policy is specified TinyCache.TinyCache.SetBasePolicy( new TinyCachePolicy() .SetMode(TinyCacheModeEnum.CacheFirst) .SetFetchTimeout(6000));
Fetch data with default policy var result = await TinyCache.TinyCache.UsePolicy<List<Data>>("cachekey", () ⇒ { return api.GetData("customdata"); });
Handle background changes TinyCache.TinyCache.OnUpdate += async (object sender, CacheUpdatedEvt e) ⇒ { var cacheKey = e.Key; var dataObject = e.Value; // HandleObjectChange(cacheKey,dataObject as MyDataType); };
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. 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. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.4 is compatible. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 was computed. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 1.4
- NETStandard.Library (>= 1.6.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on TinyCache:
Package | Downloads |
---|---|
TinyCache.FileStorage
Small helper for offline and caching of long-running processes |
|
TinyCache.Forms
Small helper for offline and caching of long-running processes |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.2 | 2,779 | 11/26/2019 |
2.0.1 | 1,060 | 11/26/2019 |
1.0.48 | 2,692 | 7/5/2019 |
1.0.47 | 1,264 | 7/5/2019 |
1.0.45 | 2,308 | 11/2/2018 |
1.0.44 | 3,512 | 7/4/2018 |
1.0.43 | 2,964 | 3/16/2018 |
1.0.42 | 1,778 | 3/16/2018 |
1.0.38 | 1,738 | 3/8/2018 |
1.0.32 | 1,645 | 1/15/2018 |
1.0.29 | 1,576 | 1/13/2018 |
1.0.25 | 1,471 | 1/11/2018 |
1.0.23 | 1,533 | 1/10/2018 |
1.0.21 | 1,507 | 1/10/2018 |
1.0.19 | 1,577 | 1/7/2018 |
1.0.18 | 1,764 | 1/5/2018 |
1.0.11 | 1,339 | 1/2/2018 |
1.0.2 | 1,382 | 1/2/2018 |