mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 02:03:13 -05:00
middleware/cache: cache 0 will be capped at 5 (#408)
* middleware/cache: cache 0 will be capped at 5 cache 0 would return TTL=0 records, up that to the documented minimum of 5 seconds. * middleware/cache: check for 0 TTL Handle 0 TTL differently and return an error, we might need to special case this in the future.
This commit is contained in:
2
middleware/cache/README.md
vendored
2
middleware/cache/README.md
vendored
@@ -14,7 +14,7 @@ cache [TTL] [ZONES...]
|
||||
|
||||
Each element in the cache is cached according to its TTL (with **TTL** as the max).
|
||||
For the negative cache, the SOA's MinTTL value is used. A cache can contain up to 10,000 items by
|
||||
default.
|
||||
default. A TTL of zero is not allowed.
|
||||
|
||||
If you want more control:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user