forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt time-related
CacheEntry
properties and backing storage.
- Loading branch information
Showing
3 changed files
with
123 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...Microsoft.Extensions.Caching.Memory/src/ClockQuantization/CacheEntry.ClockQuantization.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
#nullable enable | ||
|
||
namespace Microsoft.Extensions.Caching.Memory | ||
{ | ||
internal partial class CacheEntry : ICacheEntry | ||
{ | ||
private long? _slidingExpirationClockOffsetUnits; | ||
|
||
|
||
private Internal.ClockQuantization.LazyClockOffsetSerialPosition _lastAccessedClockOffsetSerialPosition; | ||
internal Internal.ClockQuantization.LazyClockOffsetSerialPosition LastAccessedClockOffsetSerialPosition | ||
{ | ||
get => _lastAccessedClockOffsetSerialPosition; | ||
set | ||
{ | ||
_lastAccessedClockOffsetSerialPosition = value; | ||
} | ||
} | ||
|
||
|
||
private long? _absoluteExpirationClockOffset; | ||
} | ||
} | ||
|
||
#nullable restore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters