Asoka.Wang 0a2e2d9b18 123
2025-09-02 18:52:35 +08:00

22 lines
556 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}";
}