src/Orleans.Streaming/Common/PooledCache/TimePurgePredicate.cs
/// <summary>
/// Checks to see if the message should be purged.
/// Message should be purged if its relative age is greater than <c>maxRelativeMessageAge</c> and has been in the cache longer than the minTimeInCache.
/// </summary>
/// <param name="timeInCache">The amount of time message has been in this cache</param>
/// <param name="relativeAge">The age of message relative to the most recent events read</param>
/// <returns><see langword="true"/> if the message should be purged; otherwise <see langword="false"/>.</returns>
Checks to see if the message should be purged.
Message should be purged if its relative age is greater than maxRelativeMessageAge
Checks to see if the message should be purged . Message should be purged if its relative age is greater than maxRelativeMessageAge
public virtual bool ShouldPurgeFromTime(TimeSpan timeInCache, TimeSpan relativeAge)
        {
            return timeInCache > minTimeInCache && relativeAge > maxRelativeMessageAge;
        }
public virtual bool ShouldPurgeFromTime ( TimeSpan timeInCache , TimeSpan relativeAge ) { return timeInCache > minTimeInCache && relativeAge > maxRelativeMessageAge ; }
Checks to see if the message should be purged.
Checks to see if the message should be purged .
// if time in cache exceeds the minimum and age of data is greater than max allowed, purge
if the message should be purged; otherwise .
if the message should be purged ; otherwise .
timeInCache
TimeSpan
The amount of time message has been in this cache
The amount of time message has been in this cache
relativeAge
TimeSpan
The age of message relative to the most recent events read
The age of message relative to the most recent events read