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

Please remove CheckAndInitializeCache() call in the NCacheDistributedCache ctor #54

Open
GrangerAts opened this issue Feb 10, 2020 · 1 comment

Comments

@GrangerAts
Copy link

Presently, one has to make a very bad choice when using NCache in .Net Core 3.1 as the backing object for IDistributedCache. Either set NCacheConfiguration.ExceptionsEnabled = false and have your web application lose all ability to detect, report, and handle when the cache has problems, XOR set that to true and risk the web application completely failing to start if there's any sort of problem with the cache during initialization.

Right now, any number of race conditions or temporary situations can cause the entire application to fail after a reboot or an AppDomain recycle. (NCache is still starting up, network cable unplugged, NCache on a different machine that is still rebooting, etc.)

NCacheDistributedCache calls CheckAndInitializeCache() at every Get/Set, so there's no loss.

@Mark-NCache
Copy link

Thanks for your inputs, I have discussed this with our engineering team and they have concluded this to be a valid feature request. Engineering has planned to include this in our next public release.

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

No branches or pull requests

2 participants