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
2 changes: 1 addition & 1 deletion BitFaster.Caching/Lfu/ConcurrentLfu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private void DrainBuffers()
public Optional<ICacheMetrics> Metrics => core.Metrics;

///<inheritdoc/>
public Optional<ICacheEvents<K, V>> Events => core.Events;
public Optional<ICacheEvents<K, V>> Events => Optional<ICacheEvents<K, V>>.None();

///<inheritdoc/>
public CachePolicy Policy => core.Policy;
Expand Down
2 changes: 0 additions & 2 deletions BitFaster.Caching/Lfu/ConcurrentLfuCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ public ConcurrentLfuCore(int concurrencyLevel, int capacity, IScheduler schedule

public Optional<ICacheMetrics> Metrics => new(this.metrics);

public Optional<ICacheEvents<K, V>> Events => Optional<ICacheEvents<K, V>>.None();

public CachePolicy Policy => new(new Optional<IBoundedPolicy>(this), Optional<ITimePolicy>.None());

public ICollection<K> Keys => this.dictionary.Keys;
Expand Down
2 changes: 1 addition & 1 deletion BitFaster.Caching/Scheduler/BackgroundThreadScheduler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public sealed class BackgroundThreadScheduler : IScheduler, IDisposable
public BackgroundThreadScheduler()
{
// dedicated thread
Task.Factory.StartNew(() => Background(), cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
_ = Task.Factory.StartNew(async () => await Background().ConfigureAwait(false), cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
}

///<inheritdoc/>
Expand Down