You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

63 lines
1.5 KiB

namespace Win.Sfs.Shared.CacheBase
{
/// <summary>
/// 缓存过期时间策略
/// </summary>
public static class CacheStrategyConst
{
/// <summary>
/// 一天过期24小时
/// </summary>
public const int ONE_DAY = 1440;
/// <summary>
/// 12小时过期
/// </summary>
public const int HALF_DAY = 720;
/// <summary>
/// 8小时过期
/// </summary>
public const int EIGHT_HOURS = 480;
/// <summary>
/// 5小时过期
/// </summary>
public const int FIVE_HOURS = 300;
/// <summary>
/// 3小时过期
/// </summary>
public const int THREE_HOURS = 180;
/// <summary>
/// 2小时过期
/// </summary>
public const int TWO_HOURS = 120;
/// <summary>
/// 1小时过期
/// </summary>
public const int ONE_HOURS = 60;
/// <summary>
/// 半小时过期
/// </summary>
public const int HALF_HOURS = 30;
/// <summary>
/// 5分钟过期
/// </summary>
public const int FIVE_MINUTES = 5;
/// <summary>
/// 1分钟过期
/// </summary>
public const int ONE_MINUTE = 1;
/// <summary>
/// 永不过期
/// </summary>
public const int NEVER = -1;
}
}