Comment on the effective meaning of ttl=0
authorSiraaj Khandkar <siraaj@khandkar.net>
Thu, 16 Aug 2018 17:01:46 +0000 (13:01 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Thu, 16 Aug 2018 17:01:46 +0000 (13:01 -0400)
bin/khatus_bar

index ed3d8c4..bddf0b9 100755 (executable)
@@ -51,6 +51,7 @@ function Data_get(src, key, ttl,    time, age, is_expired) {
     time = Data_get_time()
     A_time[src, key] = time
     age = time - M_time[src, key]
+    # ttl = 0 => forever
     is_expired = ttl && age > ttl
     return is_expired ? "" : Data[src, key]
 }
This page took 0.01772 seconds and 4 git commands to generate.