为什么我的cache缓存 发布后读取不到数据?
新人 第一次发帖, 求个位大哥大姐 帮小弟看看, 找了一天 不知道啥原因。
我在vs2008 用debug调试的时候 可以获取到值,运行没有错误。
我程序发布网站后, 在iis运行之后, 凡是用到了这个缓存读取数据的地方 全部报错,说value值为空。
string key = UserKey(custName);
Hashtable userLookupTable = UserCache();
CustomersInfo cachedUser = null;
cachedUser = userLookupTable[key] as CustomersInfo;
if (cachedUser == null)
{
cachedUser = new CustomersInfo();
cachedUser = cust.GetCache(custName);
// Add user to lookup table
//
userLookupTable[key] = cachedUser;
}
return cachedUser;我在vs2008 用debug调试的时候 可以获取到值,运行没有错误。
我程序发布网站后, 在iis运行之后, 凡是用到了这个缓存读取数据的地方 全部报错,说value值为空。
...全文
相关推荐
spring boot+spring cache实现两级缓存(redis+caffeine)
"Spring Boot+Spring Cache实现两级缓存(Redis+Caffeine)"知识点一:缓存与两级缓存缓存是将数据从读取较慢的介质上读取出来放到读取较快的介质上,如磁盘-->内存。
pub_cache:一个反映本地发布缓存的库
pub_cache 一个反映本地发布缓存的库。如何使用? pub_cache使您可以反思Pub缓存中的信息。 例如,要查找所有已激活的应用程序: PubCache cache = new PubCac
SpringBoot加入Guava Cache实现本地缓存代码实例
使用 Guava Cache 的优点包括:* 高性能:Guava Cache 使用高效的缓存算法,能够快速地存取数据。
Cache(数据缓存)
**Cache(数据缓存)详解**Cache,也称为数据缓存,是一种提高应用程序性能的关键技术。它通过存储经常访问的数据,使得数据的读取速度更快,从而减轻了对底层资源(如数据库或网络)的压力。
Spring Cache手动清理Redis缓存
Spring Cache手动清理Redis缓存Spring Cache是Spring框架中的一种缓存机制,它可以将缓存数据存储在Redis中。


