Skip to content

Commit

Permalink
javadoc
Browse files Browse the repository at this point in the history
Signed-off-by: garyschulte <[email protected]>
  • Loading branch information
garyschulte committed Jan 10, 2025
1 parent 95bd232 commit e9155f3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,15 @@ public String getName() {
return name;
}

protected static Boolean enableResultCaching = Boolean.TRUE;
/**
* Default result caching to false unless otherwise set.
*/
protected static Boolean enableResultCaching = Boolean.FALSE;

/**
* Enable or disable precompile result caching.
* @param enablePrecompileCaching boolean indicating whether to cache precompile results
*/
public static void setPrecompileCaching(final boolean enablePrecompileCaching) {
enableResultCaching = enablePrecompileCaching;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,11 @@ public static PrecompileContractResult halt(
}
}


/**
* Record type used for precompile result caching.
* @param cachedInput cached input bytes
* @param cachedResult cached result
*/
record PrecompileInputResultTuple(Bytes cachedInput, PrecompileContractResult cachedResult) {}
}

0 comments on commit e9155f3

Please sign in to comment.