简体   繁体   English

重新启动服务会清除MemoryCache吗?

[英]Does a restart of the service clears the MemoryCache?

在C#中,如果我的项目的输出是窗口服务,并且使用了MemoryCache,则在服务重新启动后,是否会清除MemoryCache?

Yes it will be cleared, can't find a link online to support my answer but i'am 99% sure it does, try and create a scenario where you can test it. 是的,它将被清除,无法在线找到支持我的答案的链接,但是我99%的确定它可以,请尝试创建一个可以测试它的方案。

Happy coding! 编码愉快!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM