Skip to content

Instantly share code, notes, and snippets.

@donma
Created February 18, 2022 07:20
/// <summary>
/// Azure Blob Table Connection String.
/// </summary>
public static readonly string _BlobConnectionString = "DefaultEndpointsProtocol=https;AccountName=...";
/// <summary>
/// /api/Op/ClearPool?token=token 的token
/// </summary>
public readonly static string ClearToken = "token";
public readonly static string HashToken = "TATAKOSAN";
/// <summary>
/// 五分鐘請檢查一下快取有沒有過期
/// </summary>
private readonly static int RecycleMinutes = 5;
/// <summary>
/// 如果 60 秒,都沒有人請求,在進行回收
/// </summary>
private readonly static int HowManySecondsNoDataRequest = 60;
/// <summary>
/// 如果多少分鐘沒有人存取就回收
/// default : 4hr * 60=2400;
/// </summary>
private readonly static int KeepMinutesInMemory = 2400;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment