Skip to content

Commit

Permalink
LDEV-5200 allow configuring variable name cache max size in KeyImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Dec 13, 2024
1 parent 587f0b4 commit 7051084
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion core/src/main/java/lucee/runtime/type/KeyImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.util.Map;

import lucee.commons.digest.WangJenkins;
import lucee.commons.io.SystemUtil;
import lucee.commons.lang.StringUtil;
import lucee.runtime.engine.ThreadLocalPageContext;
import lucee.runtime.exp.CasterException;
Expand All @@ -46,7 +47,7 @@ public class KeyImpl implements Collection.Key, Castable, Comparable, Externaliz
private static final long HSTART = 0xBB40E64DA205B064L;
private static final long HMULT = 7664345821815920749L;

private static final int MAX = 5000;
private static final int MAX = Caster.toInteger(SystemUtil.getSystemPropOrEnvVar("lucee.cache.variableKeys", null),5000);

// private boolean intern;
private String key;
Expand Down
2 changes: 1 addition & 1 deletion loader/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project default="core" basedir="." name="Lucee"
xmlns:resolver="antlib:org.apache.maven.resolver.ant">

<property name="version" value="6.2.0.213-SNAPSHOT"/>
<property name="version" value="6.2.0.214-SNAPSHOT"/>

<taskdef uri="antlib:org.apache.maven.resolver.ant" resource="org/apache/maven/resolver/ant/antlib.xml">
<classpath>
Expand Down
2 changes: 1 addition & 1 deletion loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.lucee</groupId>
<artifactId>lucee</artifactId>
<version>6.2.0.213-SNAPSHOT</version>
<version>6.2.0.214-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Lucee Loader Build</name>
Expand Down

0 comments on commit 7051084

Please sign in to comment.