Skip to content

Conversation

@bitfaster
Copy link
Owner

@bitfaster bitfaster commented Nov 14, 2023

This consolidates the duplicate creation logic between AsyncConcurrentLruBuilder and ConcurrentLruBuilder, and provides a smaller code size for AOT compilation (builder classes have a huge footprint).

What should this be called? Is it bad to have Create and CreateAsync? Make internal for now.

@coveralls
Copy link

coveralls commented Nov 14, 2023

Coverage Status

coverage: 98.604% (-0.02%) from 98.624%
when pulling ffc4c1b on users/alexpeck/lrufactory
into de15105 on main.

/// <summary>
/// Factory class for creating ConcurrentLru variants.
/// </summary>
public static class LruFactory<K, V>
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

internal

@bitfaster bitfaster merged commit 0bba82c into main Nov 14, 2023
@bitfaster bitfaster deleted the users/alexpeck/lrufactory branch November 14, 2023 06:38
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.

3 participants