问题描述
- 关于Memcached缓存过期时间设置的问题
- //不带过期时间的缓存 成功
//bool success = client.Store(StoreMode.Add person.UserName person);//带过期时间的缓存 失败
//bool success = client.Store(StoreMode.Add person.UserName person DateTime.Now.AddMinutes(10));Memcached添加了过期时间后换乘失败!求解!
追问: 这样设置后添加返回true,但Get时取不到存储的数据。
解决方案
MemCached过期时间的设置
appache中的缓存过期时间设置
varnish的全局缓存过期时间设置
解决方案二:
查看一下失败的返回值信息等,是不是参数有问题
时间: 2024-08-22 14:09:21