現在、キャッシュに変換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
タイプを何度も変更せずに、より高速な方法はありますか?