Skip to content

Commit 7012f33

Browse files
authored
Obsolete and remove adaptive directory caching strategy (#9542)
1 parent 4534a2e commit 7012f33

File tree

6 files changed

+14
-499
lines changed

6 files changed

+14
-499
lines changed

src/Orleans.Runtime/Configuration/Options/GrainDirectoryOptions.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public enum CachingStrategyType
1616
/// <summary>Standard fixed-size LRU.</summary>
1717
LRU,
1818
/// <summary>Adaptive caching with fixed maximum size and refresh. This option should be used in production.</summary>
19+
[Obsolete("Adaptive caching is deprecated in favor of LRU and will be removed in a future version. This value is now an alias for LRU.")]
1920
Adaptive,
2021
/// <summary>Custom cache implementation, configured by registering an <see cref="IGrainDirectoryCache"/> implementation in the dependency injection container.</summary>
2122
Custom
@@ -48,31 +49,37 @@ public enum CachingStrategyType
4849
/// <summary>
4950
/// Gets or sets the initial (minimum) time, in seconds, to keep a cache entry before revalidating.
5051
/// </summary>
52+
[Obsolete("InitialCacheTTL is deprecated and will be removed in a future version.")]
5153
public TimeSpan InitialCacheTTL { get; set; } = DEFAULT_INITIAL_CACHE_TTL;
5254

5355
/// <summary>
5456
/// The default value for <see cref="InitialCacheTTL"/>.
5557
/// </summary>
58+
[Obsolete("DEFAULT_INITIAL_CACHE_TTL is deprecated and will be removed in a future version.")]
5659
public static readonly TimeSpan DEFAULT_INITIAL_CACHE_TTL = TimeSpan.FromSeconds(30);
5760

5861
/// <summary>
5962
/// Gets or sets the maximum time, in seconds, to keep a cache entry before revalidating.
6063
/// </summary>
64+
[Obsolete("MaximumCacheTTL is deprecated and will be removed in a future version.")]
6165
public TimeSpan MaximumCacheTTL { get; set; } = DEFAULT_MAXIMUM_CACHE_TTL;
6266

6367
/// <summary>
6468
/// The default value for <see cref="MaximumCacheTTL"/>.
6569
/// </summary>
70+
[Obsolete("DEFAULT_MAXIMUM_CACHE_TTL is deprecated and will be removed in a future version.")]
6671
public static readonly TimeSpan DEFAULT_MAXIMUM_CACHE_TTL = TimeSpan.FromSeconds(240);
6772

6873
/// <summary>
6974
/// Gets or sets the factor by which cache entry TTLs should be extended when they are found to be stable.
7075
/// </summary>
76+
[Obsolete("CacheTTLExtensionFactor is deprecated and will be removed in a future version.")]
7177
public double CacheTTLExtensionFactor { get; set; } = DEFAULT_TTL_EXTENSION_FACTOR;
7278

7379
/// <summary>
7480
/// The default value for <see cref="CacheTTLExtensionFactor"/>.
7581
/// </summary>
82+
[Obsolete("DEFAULT_TTL_EXTENSION_FACTOR is deprecated and will be removed in a future version.")]
7683
public const double DEFAULT_TTL_EXTENSION_FACTOR = 2.0;
7784

7885
/// <summary>

src/Orleans.Runtime/GrainDirectory/AdaptiveDirectoryCacheMaintainer.cs

Lines changed: 0 additions & 300 deletions
This file was deleted.

0 commit comments

Comments
 (0)