Use the new more efficient .NET 9 Lock type (#18015)
This commit is contained in:
@@ -5,13 +5,13 @@ namespace Umbraco.Cms.Core.Cache;
|
||||
|
||||
public class ValueEditorCache : IValueEditorCache
|
||||
{
|
||||
private readonly object _dictionaryLocker;
|
||||
private readonly Lock _dictionaryLocker;
|
||||
private readonly Dictionary<string, Dictionary<int, IDataValueEditor>> _valueEditorCache;
|
||||
|
||||
public ValueEditorCache()
|
||||
{
|
||||
_valueEditorCache = new Dictionary<string, Dictionary<int, IDataValueEditor>>();
|
||||
_dictionaryLocker = new object();
|
||||
_dictionaryLocker = new Lock();
|
||||
}
|
||||
|
||||
public IDataValueEditor GetValueEditor(IDataEditor editor, IDataType dataType)
|
||||
|
||||
Reference in New Issue
Block a user