This is an automated email from the ASF dual-hosted git repository.
bchapuis pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git
The following commit(s) were added to refs/heads/main by this push:
new ac8d8c80 Add documentation for the cache flag (#803)
ac8d8c80 is described below
commit ac8d8c806137ec733e7f778256ef44ffc8b2717a
Author: Bertil Chapuis <[email protected]>
AuthorDate: Fri Nov 17 13:23:04 2023 +0100
Add documentation for the cache flag (#803)
---
baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Serve.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Serve.java
b/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Serve.java
index 5fb03f5f..a1a0f1bd 100644
--- a/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Serve.java
+++ b/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Serve.java
@@ -54,7 +54,10 @@ public class Serve implements Callable<Integer> {
@Mixin
private Options options;
- @Option(names = {"--cache"}, paramLabel = "CACHE", description = "The
caffeine cache directive.")
+ @Option(names = {"--cache"}, paramLabel = "CACHE", description = {
+ "The caffeine specification of the cache. " +
+ "For instance, 'maximumWeight=1073741824,expireAfterAccess=1h' " +
+ "sets a 1GB cache whose entries expires after one hour."})
private String cache = "";
@Option(names = {"--tileset"}, paramLabel = "TILESET", description = "The
tileset file.",