X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=apt_dht%2Fapt_dht_conf.py;fp=apt_dht%2Fapt_dht_conf.py;h=16f10c1c3914731a0ec2a6fece3e1c98e331d823;hp=42a3d38d3bdd002b0e5fc852ab807b7e4123d3a7;hb=be126fc5cd40e26479c50fee4f64cc478f1eb55a;hpb=ff4c2f93404e4b5b2e647ff29569f6431f608b02;ds=sidebyside diff --git a/apt_dht/apt_dht_conf.py b/apt_dht/apt_dht_conf.py index 42a3d38..16f10c1 100644 --- a/apt_dht/apt_dht_conf.py +++ b/apt_dht/apt_dht_conf.py @@ -38,6 +38,11 @@ DEFAULTS = { # 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 import DHT" to get a class that # implements the IDHT interface.