12 minutes ago, AceHack wrote
*snip*
1234567DataCacheFactoryConfiguration config =newDataCacheFactoryConfiguration("default");DataCacheFactory cacheFactory =newDataCacheFactory(config);DataCache defaultCache = cacheFactory.GetDefaultCache();defaultCache.Put("testkey","testobject");stringstrObject = (string)defaultCache.Get("testkey");defaultCache.Remove("testkey");
Maybe the compiler is smart enough to reduce the last three lines to:
var strObject = "testobject";