This is an automated email from the ASF dual-hosted git repository.

bchapuis pushed a commit to branch 797-document-cache
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git

commit 887c984edfc37ad2ab1ab9e75fe4efc406cdfc93
Author: Bertil Chapuis <[email protected]>
AuthorDate: Fri Nov 17 11:35:56 2023 +0100

    Add documentation for the cache flag
---
 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.",

Reply via email to