using IStation.Untity;
|
using System;
|
using System.Collections.Generic;
|
using System.Configuration;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace IStation.BLL
|
{
|
/// <summary>
|
/// 配置辅助类
|
/// </summary>
|
internal class ConfigHelper
|
{
|
/// <summary>
|
/// 缓存保持时间 (分钟)
|
/// </summary>
|
public static int CacheKeepTime
|
{
|
get
|
{
|
return Settings.MemoryCache.KeepTime;
|
}
|
}
|
|
/// <summary>
|
/// 缓存随机时间 (秒)
|
/// </summary>
|
public static int CacheRandomTime
|
{
|
get
|
{
|
return RandomHelper.Random(0, Settings.MemoryCache.RandomTime);
|
}
|
}
|
|
|
|
}
|
}
|