You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
/// Adds a default implementation of <see cref="IDistributedCache"/> that stores items in memory
88
+
/// to the <see cref="IServiceCollection" />. Frameworks that require a distributed cache to work
89
+
/// can safely add this dependency as part of their dependency list to ensure that there is at least
90
+
/// one implementation available.
91
+
/// </summary>
92
+
/// <remarks>
93
+
/// <see cref="AddDistributedMemoryCache(IServiceCollection)"/> should only be used in single
94
+
/// server scenarios as this cache stores items in memory and doesn't expand across multiple machines.
95
+
/// For those scenarios it is recommended to use a proper distributed cache that can expand across
96
+
/// multiple machines.
97
+
/// </remarks>
98
+
/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
99
+
/// <param name="setupAction">
100
+
/// The <see cref="Action{MemoryCacheOptions}"/> to configure the <see cref="MemoryCacheOptions"/> that is used by the <see cref="MemoryDistributedCache"/>.
101
+
/// </param>
102
+
/// <returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns>
0 commit comments