Skip to content

Commit 72a6906

Browse files
author
Travis Whidden
committed
zzzprojects#764 - Dropped Preprocessor Directive for TTL in ConstantExpressionHelper
1 parent bda7622 commit 72a6906

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/System.Linq.Dynamic.Core/Parser/ConstantExpressionHelper.cs

-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ namespace System.Linq.Dynamic.Core.Parser
55
{
66
internal static class ConstantExpressionHelper
77
{
8-
#if DEBUG
9-
private static readonly TimeSpan TimeToLivePeriod = TimeSpan.FromSeconds(10);
10-
#else
118
private static readonly TimeSpan TimeToLivePeriod = TimeSpan.FromMinutes(10);
12-
#endif
139

1410
public static readonly ThreadSafeSlidingCache<object, Expression> Expressions = new(TimeToLivePeriod);
1511
private static readonly ThreadSafeSlidingCache<Expression, string> Literals = new(TimeToLivePeriod);

0 commit comments

Comments
 (0)