Skip to content

Commit

Permalink
remove FullEviction
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksei Troepolskii committed May 26, 2023
1 parent bfb37af commit 072e0a9
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/FastCache.Cached/CacheManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,19 +174,6 @@ internal static void QueueFullEviction<K, V>(bool triggeredByTimer) where K : no
}
}

/// <summary>
/// Remove all expired cache entries of type Cached[K, V] from the cache
/// </summary>
public static void ExecuteFullEviction<K, V>() where K : notnull
{
//if already in progress, return
if (CacheStaticHolder<K, V>.EvictionJob.IsActive)
{
return;
}
ImmediateFullEviction<K, V>();
}

private static void ImmediateFullEviction<K, V>() where K : notnull
{
var evictionJob = CacheStaticHolder<K, V>.EvictionJob;
Expand Down

0 comments on commit 072e0a9

Please sign in to comment.