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

Support multiple Cache properties / fields #10

Open
Dresel opened this issue Nov 6, 2020 · 0 comments
Open

Support multiple Cache properties / fields #10

Dresel opened this issue Nov 6, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Dresel
Copy link
Member

Dresel commented Nov 6, 2020

This will be necessary if users want to mix IMemoryCache and IDistributedCache (assuming implementation of #3 and #4) within one class.

Users can explicitly specify which Cache property or field (#9) should be used via the [Cache] attribute.

There might be an implicit precedence (prefer IDistributedCache over IMemoryCache and prefer properties over fields) if not specified. A warning will be emitted if multiple IDistributedCaches or multiple IMemoryCaches occur and if it is not specified explicitly which one to use.

@Dresel Dresel added the enhancement New feature or request label Nov 6, 2020
@Dresel Dresel changed the title Allow multiple Cache properties / fields Support multiple Cache properties / fields Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant