/// <inheritdoc/> public int RemoveReference(CachedUser user) { lock (this) { return(--_referenceCount); } }
/// <inheritdoc/> public int AddReference(CachedUser user) { lock (this) { return(++_referenceCount); } }
/// <inheritdoc/> public int RemoveReference(CachedUser user) => Interlocked.Decrement(ref _referenceCount);
/// <inheritdoc/> public int AddReference(CachedUser user) => Interlocked.Increment(ref _referenceCount);