Skip to content

Conversation

@bitfaster
Copy link
Owner

Rename extension method to make it clear that GetOrAdd is atomic, not the value factory.

var lru = new ConcurrentLruBuilder<int, int>()
                .WithAtomicGetOrAdd()
                .WithCapacity(3)
                .Build();

@bitfaster bitfaster merged commit 0748cf7 into main Jul 25, 2022
@bitfaster bitfaster deleted the users/alexpeck/withatom branch July 25, 2022 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants