Skip to content

Conversation

@bitfaster
Copy link
Owner

To add the method V GetOrAdd<TArg>(K key, Func<K, TArg, V> valueFactory, TArg factoryArgument) to ICache, all implementations must have this method. Implement for ClassicLru.

@coveralls
Copy link

Coverage Status

Coverage: 96.111% (-0.4%) from 96.548% when pulling 6e7fd8a on users/alexpeck/classicarg into 8465588 on main.

@bitfaster bitfaster changed the title classic arg ClassicLru supports value factory arg Apr 26, 2023
@bitfaster bitfaster merged commit 60cfc64 into main Apr 26, 2023
@bitfaster bitfaster deleted the users/alexpeck/classicarg branch April 26, 2023 00:31
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.

[Feature request] Allow to pass additional factory argument to the GetOrAdd/GetOrAddAsync cache methods

3 participants