Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CacheSettings::{time_to_live, cache_guilds, cache_channels, cache_users} #2210

Merged
merged 10 commits into from
Oct 21, 2022

Conversation

kangalio
Copy link
Collaborator

@kangalio kangalio commented Oct 4, 2022

The idea is that even users on resource contrained devices can enable cache feature, but just disable all the individual caching flags. What remains is the cached fixed-size data: CachedShardData and more importantly CurrentUser.

This aims to fix #1953 and supersede #2138 by hopefully making it redundant to disable cache

@github-actions github-actions bot added cache Related to the `cache`-feature. client Related to the `client` module. examples Related to Serenity's examples. labels Oct 4, 2022
Forgot that Rust's stupid "you're not allowed to use struct update syntax for #[non_exhaustive] structs haha cope" role doesn't apply within the same crate
@arqunis arqunis added enhancement An improvement to Serenity. breaking change The public API is changed, resulting in miscompilations or unexpected new behaviour for users labels Oct 21, 2022
@arqunis arqunis merged commit 8cd0b3a into serenity-rs:next Oct 21, 2022
@kangalio kangalio mentioned this pull request Oct 21, 2022
@kangalio kangalio mentioned this pull request Nov 5, 2022
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Nov 7, 2022
…e_users}` (serenity-rs#2210)

The idea is that even users on resource contrained devices can enable cache
feature, but just disable all the individual caching flags. What remains is the
cached fixed-size data: `CachedShardData` and more importantly `CurrentUser`.
arqunis pushed a commit to arqunis/serenity that referenced this pull request Nov 13, 2022
…e_users}` (serenity-rs#2210)

The idea is that even users on resource contrained devices can enable cache
feature, but just disable all the individual caching flags. What remains is the
cached fixed-size data: `CachedShardData` and more importantly `CurrentUser`.
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Feb 28, 2023
…e_users}` (serenity-rs#2210)

The idea is that even users on resource contrained devices can enable cache
feature, but just disable all the individual caching flags. What remains is the
cached fixed-size data: `CachedShardData` and more importantly `CurrentUser`.
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request May 18, 2023
…e_users}` (serenity-rs#2210)

The idea is that even users on resource contrained devices can enable cache
feature, but just disable all the individual caching flags. What remains is the
cached fixed-size data: `CachedShardData` and more importantly `CurrentUser`.
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request May 30, 2023
…e_users}` (serenity-rs#2210)

The idea is that even users on resource contrained devices can enable cache
feature, but just disable all the individual caching flags. What remains is the
cached fixed-size data: `CachedShardData` and more importantly `CurrentUser`.
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Sep 21, 2023
…e_users}` (serenity-rs#2210)

The idea is that even users on resource contrained devices can enable cache
feature, but just disable all the individual caching flags. What remains is the
cached fixed-size data: `CachedShardData` and more importantly `CurrentUser`.
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Oct 17, 2023
…e_users}` (serenity-rs#2210)

The idea is that even users on resource contrained devices can enable cache
feature, but just disable all the individual caching flags. What remains is the
cached fixed-size data: `CachedShardData` and more importantly `CurrentUser`.
mkrasnitski pushed a commit to mkrasnitski/serenity that referenced this pull request Oct 24, 2023
…e_users}` (serenity-rs#2210)

The idea is that even users on resource contrained devices can enable cache
feature, but just disable all the individual caching flags. What remains is the
cached fixed-size data: `CachedShardData` and more importantly `CurrentUser`.
arqunis pushed a commit to arqunis/serenity that referenced this pull request Oct 24, 2023
…e_users}` (serenity-rs#2210)

The idea is that even users on resource contrained devices can enable cache
feature, but just disable all the individual caching flags. What remains is the
cached fixed-size data: `CachedShardData` and more importantly `CurrentUser`.
arqunis pushed a commit to arqunis/serenity that referenced this pull request Oct 24, 2023
…e_users}` (serenity-rs#2210)

The idea is that even users on resource contrained devices can enable cache
feature, but just disable all the individual caching flags. What remains is the
cached fixed-size data: `CachedShardData` and more importantly `CurrentUser`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change The public API is changed, resulting in miscompilations or unexpected new behaviour for users cache Related to the `cache`-feature. client Related to the `client` module. enhancement An improvement to Serenity. examples Related to Serenity's examples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants