Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Add MemoryDistributedCacheOptions and use it to configure MemoryCache used by MemoryDistributedCache #336

Closed
wants to merge 1 commit into from

Conversation

JunTaoLuo
Copy link
Contributor

Needs rebase once #332 goes in.

Addresse #329

/// The <see cref="Action{MemoryDistributedCacheOptions}"/> to configure the provided <see cref="MemoryDistributedCacheOptions"/>.
/// </param>
/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns>
public static IServiceCollection AddDistributedMemoryCache(this IServiceCollection services, Action<MemoryDistributedCacheOptions> setupAction)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

AddDistributedMemoryCache vs MemoryDistributedCache we should normalize the naming here. Pick one and go with it.

Copy link
Member

Choose a reason for hiding this comment

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

This is ok. Both names are already used publicly, you can't change it without breaking APIs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's good to keep things consistent and if we are going to break things, we should break them in 2.0

Copy link
Member

Choose a reason for hiding this comment

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

shrug yesterday maybe.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well we are branching on Monday now so... it's functionally yesterday.

@JunTaoLuo JunTaoLuo force-pushed the johluo/mem-dis-cache-updates branch from bf34135 to 5e73a85 Compare July 7, 2017 23:58
/// The <see cref="Action{MemoryDistributedCacheOptions}"/> to configure the provided <see cref="MemoryDistributedCacheOptions"/>.
/// </param>
/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns>
public static IServiceCollection AddDistributedMemoryCache(this IServiceCollection services, Action<MemoryDistributedCacheOptions> setupAction)
Copy link
Member

Choose a reason for hiding this comment

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

This is ok. Both names are already used publicly, you can't change it without breaking APIs.

@JunTaoLuo
Copy link
Contributor Author

I'm going to merge as is for now, if we want to change the naming, we can do it afterwards.

@JunTaoLuo
Copy link
Contributor Author

merged in 5e73a85

@JunTaoLuo JunTaoLuo closed this Jul 8, 2017
@JunTaoLuo JunTaoLuo deleted the johluo/mem-dis-cache-updates branch July 8, 2017 00:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants