Remora.Discord.Caching
39.0.0
Prefix Reserved
dotnet add package Remora.Discord.Caching --version 39.0.0
NuGet\Install-Package Remora.Discord.Caching -Version 39.0.0
<PackageReference Include="Remora.Discord.Caching" Version="39.0.0" />
paket add Remora.Discord.Caching --version 39.0.0
#r "nuget: Remora.Discord.Caching, 39.0.0"
// Install Remora.Discord.Caching as a Cake Addin #addin nuget:?package=Remora.Discord.Caching&version=39.0.0 // Install Remora.Discord.Caching as a Cake Tool #tool nuget:?package=Remora.Discord.Caching&version=39.0.0
Remora.Discord.Caching
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.
Structure
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
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 was computed. net5.0-windows was computed. net6.0 is compatible. 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 is compatible. 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 is compatible. 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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Remora.Discord.Caching.Abstractions (>= 1.1.4)
- Remora.Discord.Gateway (>= 12.0.2)
-
net6.0
- Remora.Discord.Caching.Abstractions (>= 1.1.4)
- Remora.Discord.Gateway (>= 12.0.2)
-
net7.0
- Remora.Discord.Caching.Abstractions (>= 1.1.4)
- Remora.Discord.Gateway (>= 12.0.2)
-
net8.0
- Remora.Discord.Caching.Abstractions (>= 1.1.4)
- Remora.Discord.Gateway (>= 12.0.2)
NuGet packages (3)
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 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
39.0.0 | 33,260 | 5/28/2024 | |
38.0.1 | 24,741 | 2/5/2024 | |
38.0.0 | 13,682 | 11/14/2023 | |
37.0.0 | 28,116 | 7/24/2023 | |
36.0.0 | 17,658 | 5/11/2023 | |
35.0.0 | 964 | 3/20/2023 | |
34.0.2 | 1,366 | 1/19/2023 | |
34.0.1 | 683 | 1/10/2023 | |
34.0.0 | 1,076 | 12/28/2022 | |
33.0.1 | 1,335 | 12/10/2022 | |
33.0.0 | 1,155 | 10/30/2022 | |
32.0.0 | 16,204 | 9/2/2022 | |
31.0.0 | 1,167 | 8/19/2022 | |
30.0.6 | 1,125 | 7/26/2022 | |
30.0.5 | 1,005 | 7/26/2022 | |
30.0.4 | 2,005 | 6/29/2022 | |
30.0.3 | 1,008 | 6/27/2022 | |
30.0.2 | 1,103 | 6/23/2022 | |
30.0.1 | 1,690 | 6/20/2022 | |
30.0.0 | 1,059 | 6/19/2022 | |
29.0.1 | 1,088 | 6/18/2022 | |
29.0.0 | 1,103 | 6/14/2022 | |
28.0.1 | 1,103 | 6/8/2022 | |
28.0.0 | 1,055 | 6/3/2022 | |
27.0.0 | 1,127 | 5/25/2022 | |
26.0.1 | 1,062 | 5/23/2022 | |
26.0.0 | 1,192 | 5/15/2022 | |
25.0.3 | 1,080 | 5/10/2022 | |
25.0.2 | 1,666 | 5/3/2022 | |
25.0.1 | 1,130 | 4/28/2022 | |
25.0.0 | 749 | 4/25/2022 | |
24.1.0 | 547 | 4/19/2022 | |
24.0.1 | 504 | 4/18/2022 | |
24.0.0 | 780 | 4/18/2022 | |
23.0.1 | 542 | 4/2/2022 | |
23.0.0 | 486 | 4/2/2022 | |
22.0.2 | 599 | 3/21/2022 | |
22.0.1 | 542 | 3/17/2022 | |
22.0.0 | 511 | 3/15/2022 | |
21.0.1 | 588 | 2/20/2022 | |
21.0.0 | 507 | 2/19/2022 | |
21.0.0-rc1 | 176 | 2/14/2022 | |
20.0.0 | 500 | 2/14/2022 | |
19.0.0 | 543 | 1/27/2022 | |
18.0.6 | 559 | 1/11/2022 | |
18.0.5 | 439 | 1/2/2022 | |
18.0.4 | 389 | 12/23/2021 | |
18.0.3 | 335 | 12/21/2021 | |
18.0.2 | 363 | 12/16/2021 | |
18.0.1 | 357 | 12/11/2021 | |
17.0.1 | 644 | 12/6/2021 | |
17.0.0 | 377 | 12/5/2021 | |
16.0.3 | 2,083 | 11/26/2021 | |
16.0.2 | 6,232 | 11/24/2021 | |
16.0.1 | 6,654 | 11/23/2021 | |
16.0.0 | 1,268 | 11/20/2021 | |
15.0.3 | 421 | 11/9/2021 | |
15.0.2 | 445 | 11/6/2021 | |
15.0.1 | 393 | 10/30/2021 | |
15.0.0 | 470 | 10/28/2021 | |
14.0.7 | 443 | 10/15/2021 | |
13.0.7 | 429 | 10/7/2021 | |
13.0.5 | 580 | 10/3/2021 | |
13.0.4 | 405 | 10/2/2021 | |
13.0.3 | 422 | 9/30/2021 | |
13.0.2 | 405 | 9/26/2021 | |
13.0.1 | 388 | 9/24/2021 | |
13.0.0 | 393 | 9/23/2021 | |
12.1.3 | 419 | 9/16/2021 | |
12.1.2 | 499 | 9/15/2021 | |
12.1.1 | 495 | 9/8/2021 | |
12.1.0 | 426 | 9/4/2021 | |
12.0.1 | 547 | 8/21/2021 | |
12.0.0 | 396 | 8/18/2021 | |
11.0.1 | 422 | 8/12/2021 | |
11.0.0 | 438 | 8/11/2021 | |
10.0.3 | 422 | 8/9/2021 | |
10.0.2 | 521 | 8/2/2021 | |
10.0.1 | 587 | 7/31/2021 | |
10.0.0 | 496 | 7/29/2021 | |
9.0.2 | 482 | 7/28/2021 | |
9.0.1 | 535 | 7/28/2021 | |
9.0.0 | 463 | 7/22/2021 | |
8.0.5 | 447 | 7/17/2021 | |
8.0.4 | 449 | 7/14/2021 | |
8.0.3 | 492 | 7/12/2021 | |
8.0.2 | 426 | 7/11/2021 | |
8.0.1 | 458 | 7/5/2021 | |
8.0.0 | 530 | 7/3/2021 | |
7.0.0 | 451 | 7/1/2021 | |
6.0.0 | 457 | 6/14/2021 | |
5.0.0 | 436 | 6/10/2021 | |
5.0.0-beta2 | 274 | 5/30/2021 | |
5.0.0-beta1 | 242 | 5/28/2021 | |
4.0.0 | 435 | 5/20/2021 | |
3.0.0 | 440 | 5/4/2021 | |
2.0.2 | 417 | 4/22/2021 | |
2.0.1 | 422 | 4/15/2021 | |
2.0.0 | 475 | 4/10/2021 | |
1.2.0 | 437 | 4/5/2021 | |
1.1.9 | 419 | 4/4/2021 | |
1.1.8 | 432 | 3/28/2021 | |
1.1.7 | 402 | 3/25/2021 | |
1.1.6 | 433 | 3/16/2021 | |
1.1.5 | 458 | 3/14/2021 | |
1.1.4 | 448 | 3/13/2021 | |
1.1.3 | 458 | 3/11/2021 | |
1.1.2 | 550 | 3/6/2021 | |
1.1.1 | 472 | 3/1/2021 | |
1.1.0 | 501 | 3/1/2021 | |
1.0.6 | 470 | 2/28/2021 | |
1.0.5 | 412 | 2/22/2021 | |
1.0.4 | 451 | 2/21/2021 | |
1.0.3 | 451 | 2/16/2021 | |
1.0.2 | 466 | 2/13/2021 | |
1.0.1 | 438 | 2/11/2021 | |
1.0.0 | 473 | 2/10/2021 | |
1.0.0-beta9 | 294 | 1/21/2021 | |
1.0.0-beta8 | 236 | 1/17/2021 | |
1.0.0-beta7 | 266 | 1/10/2021 | |
1.0.0-beta6 | 238 | 1/10/2021 | |
1.0.0-beta5 | 305 | 1/9/2021 | |
1.0.0-beta4 | 353 | 12/31/2020 | |
1.0.0-beta13 | 211 | 2/6/2021 | |
1.0.0-beta12 | 227 | 2/5/2021 | |
1.0.0-beta11 | 220 | 1/29/2021 | |
1.0.0-beta10 | 217 | 1/27/2021 | |
1.0.0-beta1 | 259 | 12/27/2020 |
Update dependencies.
BREAKING: Implement support for nonce enforcement.
Implement bulk banning endpoint.
BREAKING: Implement support for polls.