Shuxia Ning
2024-07-17 fd681339c81201ed6fb3303647ecab89e3e6c0c1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace IStation.Service
{
    /// <summary>
    /// 配置辅助类
    /// </summary>
    public class ConfigHelper
    {
        /// <summary>
        /// 缓存保持时间 (分钟)
        /// </summary>
        public static int CacheKeepTime
        {
            get
            {
                return Yw.Settings.MemoryCacheParasHelper.MemoryCache.KeepTime;
            }
        }
 
        /// <summary>
        /// 缓存随机时间 (秒)
        /// </summary>
        public static int CacheRandomTime
        {
            get
            {
                return RandomHelper.Random(0, Yw.Settings.MemoryCacheParasHelper.MemoryCache.RandomTime);
            }
        }
 
 
 
    }
}