using IStation.Untity; using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.Service { /// /// /// internal class ConfigHelper { /// /// 保持缓存时间 分钟 /// public static int KeepCacheTime { get { var time = Settings.MemoryCache.KeepTime; return time; } } /// /// 随机缓存时间 秒数 /// public static int RandomCacheTime { get { var time = Settings.MemoryCache.RandomTime; return RandomHelper.Random(0, time); } } /// /// 默认登录密码 /// public static string DefaultLoginPwd { get { var defaultLoginPwd = Settings.User.DefaultLoginPwd; return defaultLoginPwd; } } } }