OpenWeatherMap.Cache
1.0.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package OpenWeatherMap.Cache --version 1.0.3
NuGet\Install-Package OpenWeatherMap.Cache -Version 1.0.3
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="OpenWeatherMap.Cache" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OpenWeatherMap.Cache" Version="1.0.3" />
<PackageReference Include="OpenWeatherMap.Cache" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OpenWeatherMap.Cache --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OpenWeatherMap.Cache, 1.0.3"
#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.
#addin nuget:?package=OpenWeatherMap.Cache&version=1.0.3
#tool nuget:?package=OpenWeatherMap.Cache&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
OpenWeatherMap.Cache
A library that allows you to cache temperature, humidity and pressure readings for OpenWeatherMap, with in-built resiliency that can extend the cache lifetime.
Initialization with Dependency Injection
In your Startup.cs (ConfigureServices):
services.AddOpenWeatherMapCache("[API KEY]", 9_500, 300_000);
Then you can inject IOpenWeatherMapCache.
Initialization without Dependency Injection
Create your own instance:
var openWeatherMapCache = new OpenWeatherMapCache("[API KEY]", 9_500, 300_000);
Usage
var location = new OpenWeatherMap.Cache.Location(47.6371, -122.1237);
if (openWeatherMapCache.TryGetReadings(location, out var readings))
{
...
}
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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. 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 | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 5.0.0)
- Newtonsoft.Json (>= 12.0.3)
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.0 | 88 | 10 days ago |
1.12.4 | 88 | 17 days ago |
1.12.2 | 952 | 5 months ago |
1.12.1 | 2,360 | 6 months ago |
1.12.0 | 149 | 7 months ago |
1.11.1 | 111 | 7 months ago |
1.11.0 | 292 | 8 months ago |
1.10.6 | 629 | 9 months ago |
1.10.5 | 157 | 10 months ago |
1.10.3 | 2,938 | 1/23/2024 |
1.10.2 | 159 | 1/15/2024 |
1.10.1 | 528 | 1/1/2024 |
1.9.13 | 151 | 12/30/2023 |
1.9.12 | 183 | 12/6/2023 |
1.9.11 | 179 | 12/3/2023 |
1.9.10 | 133 | 12/2/2023 |
1.9.9 | 456 | 10/11/2023 |
1.9.8 | 1,034 | 4/10/2023 |
1.9.7 | 203 | 4/7/2023 |
1.9.6 | 1,908 | 3/25/2023 |
1.9.5 | 226 | 3/25/2023 |
1.9.4 | 339 | 2/25/2023 |
1.9.3 | 617 | 2/13/2023 |
1.9.2 | 286 | 2/3/2023 |
1.9.1 | 325 | 1/29/2023 |
1.9.0 | 300 | 1/27/2023 |
1.8.9 | 315 | 1/26/2023 |
1.8.8 | 351 | 1/2/2023 |
1.8.7 | 310 | 12/29/2022 |
1.8.6 | 447 | 12/18/2022 |
1.8.5 | 326 | 12/16/2022 |
1.8.3 | 325 | 12/13/2022 |
1.8.2 | 326 | 12/12/2022 |
1.8.1 | 324 | 12/12/2022 |
1.8.0 | 365 | 12/3/2022 |
1.7.5 | 346 | 11/28/2022 |
1.7.4 | 466 | 11/26/2022 |
1.7.3 | 352 | 11/19/2022 |
1.7.2 | 2,757 | 11/13/2022 |
1.6.1 | 987 | 10/26/2022 |
1.6.0 | 415 | 10/23/2022 |
1.5.12 | 636 | 10/18/2022 |
1.5.11 | 431 | 10/16/2022 |
1.5.10 | 488 | 9/17/2022 |
1.5.9 | 728 | 6/29/2022 |
1.5.8 | 456 | 6/29/2022 |
1.5.7 | 476 | 6/18/2022 |
1.5.6 | 456 | 6/9/2022 |
1.5.5 | 477 | 5/15/2022 |
1.5.4 | 1,683 | 4/15/2022 |
1.5.3 | 1,030 | 3/13/2022 |
1.5.2 | 459 | 3/13/2022 |
1.5.1 | 467 | 3/11/2022 |
1.5.0 | 501 | 2/26/2022 |
1.4.10 | 862 | 1/26/2022 |
1.4.9 | 591 | 12/11/2021 |
1.4.8 | 321 | 11/27/2021 |
1.4.7 | 335 | 11/23/2021 |
1.4.5 | 330 | 11/22/2021 |
1.4.4 | 757 | 11/21/2021 |
1.4.3 | 411 | 11/14/2021 |
1.4.2 | 354 | 11/10/2021 |
1.4.1 | 351 | 11/7/2021 |
1.4.0 | 407 | 10/20/2021 |
1.3.5 | 1,737 | 6/20/2021 |
1.3.4 | 443 | 6/20/2021 |
1.3.3 | 494 | 12/26/2020 |
1.3.2 | 462 | 12/6/2020 |
1.3.1 | 494 | 11/30/2020 |
1.3.0 | 462 | 11/28/2020 |
1.2.1 | 544 | 11/27/2020 |
1.2.0 | 469 | 11/24/2020 |
1.1.1 | 496 | 11/23/2020 |
1.1.0 | 451 | 11/23/2020 |
1.0.5 | 501 | 11/22/2020 |
1.0.4 | 438 | 11/22/2020 |
1.0.3 | 444 | 11/22/2020 |
1.0.2 | 440 | 11/22/2020 |
1.0.1 | 451 | 11/22/2020 |
1.0.0 | 472 | 11/22/2020 |
Added package description.