![]() |
VOOZH | about |
dotnet add package Remora.Discord.Caching --version 40.0.1
NuGet\Install-Package Remora.Discord.Caching -Version 40.0.1
<PackageReference Include="Remora.Discord.Caching" Version="40.0.1" />
<PackageVersion Include="Remora.Discord.Caching" Version="40.0.1" />Directory.Packages.props
<PackageReference Include="Remora.Discord.Caching" />Project file
paket add Remora.Discord.Caching --version 40.0.1
#r "nuget: Remora.Discord.Caching, 40.0.1"
#:package Remora.Discord.Caching@40.0.1
#addin nuget:?package=Remora.Discord.Caching&version=40.0.1Install as a Cake Addin
#tool nuget:?package=Remora.Discord.Caching&version=40.0.1Install as a Cake Tool
This package contains cache functionality for the gateway and REST API, enabling replacement of the standard services with caching counterparts. These services attempt to retrieve entities from a cache provider whenever possible instead of performing a remote call to Discord's REST API, saving bandwidth and increasing performance.
A set of responders are also registered, enabling near real-time cache updates as new events come in.
The library defines a set of replacement services for the API services from Remora.Discord.Rest, which override the base implementation in order to perform cache operations before and after normal calls.
In addition, two responders - one in the early group, and one in the late - are also defined, which handle eviction and insertion of incoming objects.
Usage is simple, but with one caveat - caching must be enabled after the REST and gateway services have been added to the dependency injection container, as this library replaces services from them.
After that, it's as simple as calling the following method. By default, the caching system uses an in-memory cache provider.
services.AddDiscordCaching();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 3 NuGet packages that depend on Remora.Discord.Caching:
| Package | Downloads |
|---|---|
|
Remora.Discord
Metapackage for Remora.Discord's various components |
|
|
Remora.Discord.Caching.Redis
Redis-based cache provider for Remora.Discord |
|
|
VTP.Remora.Discord.HTTPInteractions
Adds support for receiving interactions over HTTP to Remora.Discord |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 40.0.1 | 37,060 | 5/24/2025 |
| 40.0.0 | 14,870 | 2/13/2025 |
| 39.0.0 | 46,772 | 5/28/2024 |
| 38.0.1 | 26,206 | 2/5/2024 |
| 38.0.0 | 14,030 | 11/14/2023 |
| 37.0.0 | 28,736 | 7/24/2023 |
| 36.0.0 | 17,971 | 5/11/2023 |
| 35.0.0 | 1,184 | 3/20/2023 |
| 34.0.2 | 1,584 | 1/19/2023 |
| 34.0.1 | 917 | 1/10/2023 |
| 34.0.0 | 1,274 | 12/28/2022 |
| 33.0.1 | 1,556 | 12/10/2022 |
| 33.0.0 | 1,362 | 10/30/2022 |
| 32.0.0 | 16,777 | 9/2/2022 |
| 31.0.0 | 1,358 | 8/19/2022 |
| 30.0.6 | 1,371 | 7/26/2022 |
| 30.0.5 | 1,207 | 7/26/2022 |
| 30.0.4 | 2,251 | 6/29/2022 |
| 30.0.3 | 1,208 | 6/27/2022 |
| 30.0.2 | 1,319 | 6/23/2022 |
Fix CacheService.TryGetPreviousValueAsync
Handle IMessageUpdate in cache service