目前,我必须转换int
并string
存储在缓存中,非常复杂
int test = 123;
System.Web.HttpContext.Current.Cache.Insert("key", test.ToString()); // to save the cache
test = Int32.Parse(System.Web.HttpContext.Current.Cache.Get("key").ToString()); // to get the cache
这是一种更快的方法而无需一次又一次地更改类型吗?