d60ae43b59
* Initial plan * feat: add Redis-backed ITranscodeSessionStore with NullTranscodeSessionStore fallback and DI registration Co-authored-by: ZoltyMat <177592743+ZoltyMat@users.noreply.github.com> * refactor: add code review improvements - lease expiry comment, Redis connection error handling Co-authored-by: ZoltyMat <177592743+ZoltyMat@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ZoltyMat <177592743+ZoltyMat@users.noreply.github.com>
20 lines
677 B
C#
20 lines
677 B
C#
namespace MediaBrowser.Controller.MediaEncoding;
|
|
|
|
/// <summary>
|
|
/// Configuration options for the transcode session store.
|
|
/// </summary>
|
|
public sealed class TranscodeStoreOptions
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the Redis connection string.
|
|
/// A <c>null</c> or empty value indicates single-instance mode, where
|
|
/// <see cref="NullTranscodeSessionStore"/> is used instead of a Redis-backed store.
|
|
/// </summary>
|
|
public string? RedisConnectionString { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the duration in seconds for which a transcoding session lease is valid.
|
|
/// </summary>
|
|
public int LeaseDurationSeconds { get; set; } = 30;
|
|
}
|