Skip to content

Commit

Permalink
Fix TTL sliding to infinitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
koculu committed Aug 22, 2022
1 parent a8bb8f3 commit 6f3f175
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/ZoneTree/Core/TTLValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public void Expire()

public void SlideExpiration(TimeSpan timeSpan)
{
var delta = Expiration.Subtract(DateTime.UtcNow);
if (delta >= timeSpan)
return;
Expiration = Expiration.Add(timeSpan);
}
}
6 changes: 3 additions & 3 deletions src/ZoneTree/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<Authors>Ahmed Yasin Koculu</Authors>
<PackageId>ZoneTree</PackageId>
<Title>ZoneTree</Title>
<ProductVersion>1.3.5.0</ProductVersion>
<Version>1.3.5.0</Version>
<ProductVersion>1.3.6.0</ProductVersion>
<Version>1.3.6.0</Version>
<Authors>Ahmed Yasin Koculu</Authors>
<AssemblyTitle>ZoneTree</AssemblyTitle>
<Description>ZoneTree is a persistent, high-performance, transactional, ACID-compliant ordered key-value database for NET. It can operate in memory or on local/cloud storage.</Description>
Expand All @@ -17,7 +17,7 @@
<ReleaseNotes></ReleaseNotes>
<Company>koculu</Company>

<PackageProjectUrl>https://github.com/koculu/ZoneTree</PackageProjectUrl>
<PackageProjectUrl>https://tenray.io</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>

<PublishRepositoryUrl>true</PublishRepositoryUrl>
Expand Down

0 comments on commit 6f3f175

Please sign in to comment.