TinyCache.Forms
1.0.2
See the version list below for details.
dotnet add package TinyCache.Forms --version 1.0.2
NuGet\Install-Package TinyCache.Forms -Version 1.0.2
<PackageReference Include="TinyCache.Forms" Version="1.0.2" />
paket add TinyCache.Forms --version 1.0.2
#r "nuget: TinyCache.Forms, 1.0.2"
// Install TinyCache.Forms as a Cake Addin
#addin nuget:?package=TinyCache.Forms&version=1.0.2
// Install TinyCache.Forms as a Cake Tool
#tool nuget:?package=TinyCache.Forms&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)
- Newtonsoft.Json (>= 9.0.1)
- TinyCache (>= 1.0.2)
- Xamarin.Forms (>= 2.5.0.121934)
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 |
---|---|---|
2.0.2 | 698 | 11/26/2019 |
2.0.1 | 573 | 11/26/2019 |
1.0.48 | 659 | 7/5/2019 |
1.0.47 | 804 | 7/5/2019 |
1.0.45 | 1,797 | 11/2/2018 |
1.0.44 | 1,330 | 7/4/2018 |
1.0.43 | 1,275 | 3/16/2018 |
1.0.42 | 1,039 | 3/16/2018 |
1.0.38 | 1,020 | 3/8/2018 |
1.0.32 | 977 | 1/15/2018 |
1.0.29 | 1,066 | 1/13/2018 |
1.0.25 | 1,037 | 1/11/2018 |
1.0.23 | 1,072 | 1/10/2018 |
1.0.21 | 1,063 | 1/10/2018 |
1.0.19 | 1,070 | 1/7/2018 |
1.0.18 | 1,283 | 1/5/2018 |
1.0.11 | 1,065 | 1/2/2018 |
1.0.2 | 1,120 | 1/2/2018 |