sqlhelperparametercache 中使用了什么 "cache"
What "cache" is being used in sqlhelperparametercache
我一直在尝试确定您调用 SqlHelperParameterCache.GetSpParameterSet 时正在使用的缓存。我认为它可能是 SQL 服务器执行计划缓存,但我不确定:https://msdn.microsoft.com/en-us/library/ms175580.aspx
我似乎无法在 MSDN 上找到明确的答案。对这个古老的物体有什么想法吗?
谢谢!
根据这个看起来像原始镜像的 source code,看来他们使用的是静态 Hashtable
。因此,缓存不会超出 AppPool 生命周期。
private static Hashtable paramCache = Hashtable.Synchronized(new Hashtable());
我一直在尝试确定您调用 SqlHelperParameterCache.GetSpParameterSet 时正在使用的缓存。我认为它可能是 SQL 服务器执行计划缓存,但我不确定:https://msdn.microsoft.com/en-us/library/ms175580.aspx
我似乎无法在 MSDN 上找到明确的答案。对这个古老的物体有什么想法吗?
谢谢!
根据这个看起来像原始镜像的 source code,看来他们使用的是静态 Hashtable
。因此,缓存不会超出 AppPool 生命周期。
private static Hashtable paramCache = Hashtable.Synchronized(new Hashtable());