Unload the AptPackages caches after a period of inactivity.
[quix0rs-apt-p2p.git] / apt-dht.conf
index 0b06e20eb50df6dc4d709568db14ebf6bd06b0bb..7f42e4d31822fe30147cbb5a1c7499b52495a2cd 100644 (file)
@@ -29,6 +29,11 @@ CACHE_DIR = /var/cache/apt-dht
 # Whether it's OK to use an IP addres from a known local/private range
 LOCAL_OK = no
 
+# Unload the packages cache after an interval of inactivity this long.
+# The packages cache uses a lot of memory, and only takes a few seconds
+# to reload when a new request arrives.
+UNLOAD_PACKAGES_CACHE = 5m
+
 # Which DHT implementation to use.
 # It must be possile to do "from <DHT>.DHT import DHT" to get a class that
 # implements the IDHT interface. There should also be a similarly named