feat: Вынесены настройки из dal
This commit is contained in:
10
PARR.Domain/Settings/GroupedShortcodesCacheSettings.cs
Normal file
10
PARR.Domain/Settings/GroupedShortcodesCacheSettings.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace PARR.Domain.Settings
|
||||
{
|
||||
public class GroupedShortcodesCacheSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// Время хранения
|
||||
/// </summary>
|
||||
public TimeSpan ValueTtl { get; set; } = TimeSpan.FromMinutes(20);
|
||||
}
|
||||
}
|
||||
13
PARR.Domain/Settings/PrefixSettings.cs
Normal file
13
PARR.Domain/Settings/PrefixSettings.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace PARR.Domain.Settings
|
||||
{
|
||||
/// <summary>
|
||||
/// Для использования в моделе, в геттере, ApplicationInWork
|
||||
/// </summary>
|
||||
public static class PrefixSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// Префикс без динамической приставки
|
||||
/// </summary>
|
||||
public static string PrefixWithoutVariable = "default value";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user