Asoka.Wang 21f044712c 1
2025-08-27 18:39:19 +08:00

21 lines
555 B
C#

using System.ComponentModel;
namespace NPP.SmartSchedue.Api.Core.Consts;
/// <summary>
/// 缓存键
/// </summary>
public static partial class CacheKeys
{
/// <summary>
/// 模块缓存键 module:action:{id}
/// </summary>
[Description("模块缓存键")] public const string ModuleActionKey = "module:action:";
/// <summary>
/// 获取模块缓存键
/// </summary>
/// <param name="id">模块Id</param>
/// <returns></returns>
public static string GetModuleActionKey(long id) => $"{ModuleActionKey}{id}";
}