Skip to content

Commit a0579e1

Browse files
committed
Fix mistaken HasValue check
1 parent f92a6e8 commit a0579e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Extensions.Caching.ServiceStackRedis/ServiceStackRedisCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private int GetExpireInSeconds(DistributedCacheEntryOptions options)
144144
{
145145
return (int)options.SlidingExpiration.Value.TotalSeconds;
146146
}
147-
else if (options.AbsoluteExpiration.HasValue)
147+
else if (options.AbsoluteExpirationRelativeToNow.HasValue)
148148
{
149149
return (int)options.AbsoluteExpirationRelativeToNow.Value.TotalSeconds;
150150
}

0 commit comments

Comments
 (0)