b662ffa48f
Add a Redis pub/sub invalidation bus, publish from the configuration and library-option write paths, and drop the matching local cache entry on the instances that did not write. No-op without a Redis connection string, and fails open when it is unreachable.
30 lines
915 B
C#
30 lines
915 B
C#
namespace MediaBrowser.Common.Configuration
|
|
{
|
|
/// <summary>
|
|
/// Identifies which locally cached copy of the shared configuration a
|
|
/// <see cref="ConfigurationInvalidation"/> refers to.
|
|
/// </summary>
|
|
public enum ConfigurationInvalidationScope
|
|
{
|
|
/// <summary>
|
|
/// The system configuration cached by the configuration manager.
|
|
/// </summary>
|
|
SystemConfiguration = 0,
|
|
|
|
/// <summary>
|
|
/// A single named configuration, identified by its key.
|
|
/// </summary>
|
|
NamedConfiguration = 1,
|
|
|
|
/// <summary>
|
|
/// The library options of a single collection folder, identified by its path.
|
|
/// </summary>
|
|
LibraryOptions = 2,
|
|
|
|
/// <summary>
|
|
/// The library options of every collection folder, for changes to the library structure itself.
|
|
/// </summary>
|
|
AllLibraryOptions = 3
|
|
}
|
|
}
|