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

Create a sectioned IAppCache #166

Open
kkd83 opened this issue Sep 7, 2021 · 0 comments
Open

Create a sectioned IAppCache #166

kkd83 opened this issue Sep 7, 2021 · 0 comments

Comments

@kkd83
Copy link

kkd83 commented Sep 7, 2021

[Use the Thumbs Up reaction to vote for this feature, and please avoid adding comments like "+1" as they create noise for others watching the issue.]

Is your feature request related to a problem? Please describe.
Dependency injected I have an IAppCache which I can add items to but I have to build the key so there is no possible clash with another. This is usually fine but would be better if I could define a section dedicated to my types without worry of a clash.

Describe the solution you'd like
I'm proposing adding an extension IAppCache GetSection(this IAppCache cache, string section) which would prepend the section to every key automatically.

This would be a very small non-breaking change.

Describe alternatives you've considered
None that I can think of.

Additional context
None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant