Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public enum CachingStrategyType
/// <summary>Standard fixed-size LRU.</summary>
LRU,
/// <summary>Adaptive caching with fixed maximum size and refresh. This option should be used in production.</summary>
[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.")]
Adaptive,
/// <summary>Custom cache implementation, configured by registering an <see cref="IGrainDirectoryCache"/> implementation in the dependency injection container.</summary>
Custom
Expand Down Expand Up @@ -48,31 +49,37 @@ public enum CachingStrategyType
/// <summary>
/// Gets or sets the initial (minimum) time, in seconds, to keep a cache entry before revalidating.
/// </summary>
[Obsolete("InitialCacheTTL is deprecated and will be removed in a future version.")]
public TimeSpan InitialCacheTTL { get; set; } = DEFAULT_INITIAL_CACHE_TTL;

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

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

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

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

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

/// <summary>
Expand Down
300 changes: 0 additions & 300 deletions src/Orleans.Runtime/GrainDirectory/AdaptiveDirectoryCacheMaintainer.cs

This file was deleted.

Loading