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" />
<PackageVersion Include="TinyCache" Version="1.0.2" />
<PackageReference Include="TinyCache" />
paket add TinyCache --version 1.0.2
#r "nuget: TinyCache, 1.0.2"
#addin nuget:?package=TinyCache&version=1.0.2
#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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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 | 3,166 | 11/26/2019 |
2.0.1 | 1,198 | 11/26/2019 |
1.0.48 | 2,834 | 7/5/2019 |
1.0.47 | 1,390 | 7/5/2019 |
1.0.45 | 2,457 | 11/2/2018 |
1.0.44 | 3,724 | 7/4/2018 |
1.0.43 | 3,276 | 3/16/2018 |
1.0.42 | 2,081 | 3/16/2018 |
1.0.38 | 2,041 | 3/8/2018 |
1.0.32 | 1,863 | 1/15/2018 |
1.0.29 | 1,883 | 1/13/2018 |
1.0.25 | 1,773 | 1/11/2018 |
1.0.23 | 1,816 | 1/10/2018 |
1.0.21 | 1,812 | 1/10/2018 |
1.0.19 | 1,878 | 1/7/2018 |
1.0.18 | 2,131 | 1/5/2018 |
1.0.11 | 1,633 | 1/2/2018 |
1.0.2 | 1,749 | 1/2/2018 |