Table of Contents

Class NamedLocks

Namespace
ToSic.Sys.Locking
Assembly
ToSic.Sys.Core.dll

Very simple helper to manage locks - typically for caching or resource intensive generation operations.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public class NamedLocks
Inheritance
object
NamedLocks

Constructors

NamedLocks(bool)

Very simple helper to manage locks - typically for caching or resource intensive generation operations.

public NamedLocks(bool ignoreCase = true)

Parameters

ignoreCase bool

Fields

Locks

public readonly ConcurrentDictionary<string, object> Locks

Field Value

ConcurrentDictionary<string, object>

Methods

Get(string)

public object Get(string key)

Parameters

key string

Returns

object