Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
vb.net 静态变量是否适用于 IIS 网络花园?
这取决于您打算将它们用于什么用途。
每个进程都有一组静态变量,因此如果您打算使用它在服务器之间共享数据,那将无法正常工作。
如果您打算将其用于缓存,它将起作用。同一台服务器上的所有线程将共享缓存,但每台服务器将有一个缓存。