var memcachedClient = app.ApplicationServices.GetService<IMemcachedClient>() as MemcachedClient; var cacheKey = "sample_response"; var test = memcachedClient.ExecuteStore(Enyim.Caching.Memcached.StoreMode.Set, cacheKey, "111",DateTime.Now.AddDays(100)); var cacheResult = memcachedClient.ExecuteGet(cacheKey);我這樣的在緩存工具MemAdmin是set成功過了。但是很快就失效了。
EnyimMemcachedCore有設置緩存過期時間有成功過的嗎
一只斗牛犬
2018-08-06 07:10:24