public ICacheAppConfig getCacheAppConfig() { var storage = SimpleStorage.EditGroup(KeyString.AppConfig.GroupCode); ICacheAppConfig data = new ICacheAppConfig(); data.IP = storage.Get(KeyString.AppConfig.IP); data.SearchRadius = storage.Get <double>(KeyString.AppConfig.searchradius); data.TalkToUsEmail = storage.Get(KeyString.AppConfig.talktousemail); return(data); }
public void CacheAppConfig(string IP, double searchradius, string talktousemail) { ICacheAppConfig data = new ICacheAppConfig(); data.IP = IP; data.SearchRadius = searchradius; var storage = SimpleStorage.EditGroup(KeyString.AppConfig.GroupCode); storage.Put(KeyString.AppConfig.IP, IP); storage.Put <double>(KeyString.AppConfig.searchradius, searchradius); storage.Put(KeyString.AppConfig.talktousemail, talktousemail); }