19 lines
709 B
C#
19 lines
709 B
C#
namespace EnvelopeGenerator.Application.Configurations
|
|
{
|
|
public class EnvelopeReceiverCacheParams
|
|
{
|
|
/// <summary>
|
|
/// Gets the cache key format for SMS codes.
|
|
/// The placeholder {0} represents the envelopeReceiverId.
|
|
/// </summary>
|
|
public string CodeCacheKeyFormat { get; init; } = "sms-code-{0}";
|
|
|
|
/// <summary>
|
|
/// Gets the cache expiration key format for SMS codes.
|
|
/// The placeholder {0} represents the envelopeReceiverId.
|
|
/// </summary>
|
|
public string CodeExpirationCacheKeyFormat { get; init; } = "sms-code-expiration-{0}";
|
|
|
|
public TimeSpan CodeCacheValidityPeriod { get; init; } = new(0, 5, 0);
|
|
}
|
|
} |