LazyCache icon indicating copy to clipboard operation
LazyCache copied to clipboard

Create a sectioned IAppCache

Open kkd83 opened this issue 4 years ago • 0 comments

[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.

kkd83 avatar Sep 07 '21 17:09 kkd83